summaryrefslogtreecommitdiff
path: root/libs/hwui/FeatureFlags.h
diff options
context:
space:
mode:
author Seigo Nonaka <nona@google.com> 2023-12-18 16:27:37 +0900
committer Seigo Nonaka <nona@google.com> 2024-01-18 10:27:02 +0900
commitd27b2f207a19f15c94f232a1db524364efd68ddf (patch)
tree8d8c635b423d26cf5d45135560d388b5bc0f9de2 /libs/hwui/FeatureFlags.h
parent6b2c10dbc55b99c08723cbe4e1b2f212db262773 (diff)
Remove unnecessary letter spaceing from the left and right of line
This CL is a groundwork for the inter character justification. The letter spacing should not be added to the left most character and right most character. Bug: 283193133 Test: atest FrameworksCoreTests:android.text.TextLineLetterSpacingTest Test: atest CtsTextTestCases Change-Id: I28ac4f9f3b7520d7518d34f06ea9c05907cad9a6
Diffstat (limited to 'libs/hwui/FeatureFlags.h')
-rw-r--r--libs/hwui/FeatureFlags.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/hwui/FeatureFlags.h b/libs/hwui/FeatureFlags.h
index 00d049cde925..6ebfc63bdf26 100644
--- a/libs/hwui/FeatureFlags.h
+++ b/libs/hwui/FeatureFlags.h
@@ -41,6 +41,14 @@ inline bool deprecate_ui_fonts() {
#endif // __ANDROID__
}
+inline bool inter_character_justification() {
+#ifdef __ANDROID__
+ return com_android_text_flags_inter_character_justification();
+#else
+ return true;
+#endif // __ANDROID__
+}
+
} // namespace text_feature
} // namespace android