Loading core/java/android/text/flags/flags.aconfig +0 −7 Original line number Diff line number Diff line Loading @@ -58,13 +58,6 @@ flag { bug: "63938206" } flag { name: "deprecate_ui_fonts" namespace: "text" description: "Feature flag for deprecating UI fonts. By setting true for this feature flag, the elegant text height of will be turned on by default unless explicitly setting it to false by attribute or Java API call." bug: "279646685" } flag { name: "word_style_auto" is_exported: true Loading graphics/java/android/graphics/Paint.java +1 −10 Original line number Diff line number Diff line Loading @@ -1805,16 +1805,7 @@ public class Paint { * @return true if elegant metrics are enabled for text drawing. */ public boolean isElegantTextHeight() { int rawValue = nGetElegantTextHeight(mNativePaint); switch (rawValue) { case ELEGANT_TEXT_HEIGHT_DISABLED: return false; case ELEGANT_TEXT_HEIGHT_ENABLED: return true; case ELEGANT_TEXT_HEIGHT_UNSET: default: return com.android.text.flags.Flags.deprecateUiFonts(); } return nGetElegantTextHeight(mNativePaint) != ELEGANT_TEXT_HEIGHT_DISABLED; } // Note: the following three values must be equal to the ones in the JNI file: Paint.cpp Loading libs/hwui/FeatureFlags.h +0 −8 Original line number Diff line number Diff line Loading @@ -25,14 +25,6 @@ namespace android { namespace text_feature { inline bool deprecate_ui_fonts() { #ifdef __ANDROID__ return com_android_text_flags_deprecate_ui_fonts(); #else return true; #endif // __ANDROID__ } inline bool letter_spacing_justification() { #ifdef __ANDROID__ return com_android_text_flags_letter_spacing_justification(); Loading libs/hwui/hwui/MinikinUtils.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -53,9 +53,7 @@ minikin::MinikinPaint MinikinUtils::prepareMinikinPaint(const Paint* paint, if (familyVariant.has_value()) { minikinPaint.familyVariant = familyVariant.value(); } else { minikinPaint.familyVariant = text_feature::deprecate_ui_fonts() ? minikin::FamilyVariant::ELEGANT : minikin::FamilyVariant::DEFAULT; minikinPaint.familyVariant = minikin::FamilyVariant::ELEGANT; } return minikinPaint; } Loading Loading
core/java/android/text/flags/flags.aconfig +0 −7 Original line number Diff line number Diff line Loading @@ -58,13 +58,6 @@ flag { bug: "63938206" } flag { name: "deprecate_ui_fonts" namespace: "text" description: "Feature flag for deprecating UI fonts. By setting true for this feature flag, the elegant text height of will be turned on by default unless explicitly setting it to false by attribute or Java API call." bug: "279646685" } flag { name: "word_style_auto" is_exported: true Loading
graphics/java/android/graphics/Paint.java +1 −10 Original line number Diff line number Diff line Loading @@ -1805,16 +1805,7 @@ public class Paint { * @return true if elegant metrics are enabled for text drawing. */ public boolean isElegantTextHeight() { int rawValue = nGetElegantTextHeight(mNativePaint); switch (rawValue) { case ELEGANT_TEXT_HEIGHT_DISABLED: return false; case ELEGANT_TEXT_HEIGHT_ENABLED: return true; case ELEGANT_TEXT_HEIGHT_UNSET: default: return com.android.text.flags.Flags.deprecateUiFonts(); } return nGetElegantTextHeight(mNativePaint) != ELEGANT_TEXT_HEIGHT_DISABLED; } // Note: the following three values must be equal to the ones in the JNI file: Paint.cpp Loading
libs/hwui/FeatureFlags.h +0 −8 Original line number Diff line number Diff line Loading @@ -25,14 +25,6 @@ namespace android { namespace text_feature { inline bool deprecate_ui_fonts() { #ifdef __ANDROID__ return com_android_text_flags_deprecate_ui_fonts(); #else return true; #endif // __ANDROID__ } inline bool letter_spacing_justification() { #ifdef __ANDROID__ return com_android_text_flags_letter_spacing_justification(); Loading
libs/hwui/hwui/MinikinUtils.cpp +1 −3 Original line number Diff line number Diff line Loading @@ -53,9 +53,7 @@ minikin::MinikinPaint MinikinUtils::prepareMinikinPaint(const Paint* paint, if (familyVariant.has_value()) { minikinPaint.familyVariant = familyVariant.value(); } else { minikinPaint.familyVariant = text_feature::deprecate_ui_fonts() ? minikin::FamilyVariant::ELEGANT : minikin::FamilyVariant::DEFAULT; minikinPaint.familyVariant = minikin::FamilyVariant::ELEGANT; } return minikinPaint; } Loading