summaryrefslogtreecommitdiff
path: root/libs/hwui/FeatureFlags.h
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2024-08-26 01:41:23 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2024-08-26 01:41:23 +0000
commit03a6f8bf1c2034c455e5f0c2ccb712535d2aec55 (patch)
tree40adf6cff23cf502a56f3668b414c7eb58131c47 /libs/hwui/FeatureFlags.h
parent4cc6b39fa5fe44f5b4c71b1447b49b84d745ec6d (diff)
parent3c07e21b71fd3b41827531d425b5787652542fb9 (diff)
Merge "Use run based APIs for iterating fonts" into main
Diffstat (limited to 'libs/hwui/FeatureFlags.h')
-rw-r--r--libs/hwui/FeatureFlags.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/hwui/FeatureFlags.h b/libs/hwui/FeatureFlags.h
index ac75c077b58f..c1c30f5379ab 100644
--- a/libs/hwui/FeatureFlags.h
+++ b/libs/hwui/FeatureFlags.h
@@ -49,6 +49,15 @@ inline bool letter_spacing_justification() {
#endif // __ANDROID__
}
+inline bool typeface_redesign() {
+#ifdef __ANDROID__
+ static bool flag = com_android_text_flags_typeface_redesign();
+ return flag;
+#else
+ return true;
+#endif // __ANDROID__
+}
+
} // namespace text_feature
} // namespace android