From d27b2f207a19f15c94f232a1db524364efd68ddf Mon Sep 17 00:00:00 2001 From: Seigo Nonaka Date: Mon, 18 Dec 2023 16:27:37 +0900 Subject: 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 --- libs/hwui/FeatureFlags.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libs/hwui/FeatureFlags.h') 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 -- cgit v1.2.3-59-g8ed1b