From 521bc0a65378c3f61f7ebe6dd040ffcda1d371e0 Mon Sep 17 00:00:00 2001 From: Danny Lin Date: Tue, 5 Oct 2021 21:02:19 -0700 Subject: SystemUI: Update lock screen clock typography for Inter font In my opinion, geometric 6 and 9 glyphs look better when used in a large, prominent number-focused context, similar to Google Sans Clock on stock. Our default font, Inter, support this in the form of font features; we just need to enable it. Font features need to be changed here (not res-keyguard/font/clock.xml) because they differ by clock type. This also fixes an issue where some times cause uneven width mismatches between the top and bottom lines of the large clock. Small clock: - pnum (proportional numbers; default for Inter, but it doesn't hurt to leave the AOSP flag) - cv03 (geometric 6) - cv04 (geometric 9) Large clock: - tnum (tabular numbers; fixes mismatching widths in large clock) - cv03 (geometric 6) - cv04 (geometric 9) Change-Id: Ieb2ad15417454d05abc5f33b11f7364e97b4e365 --- packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml index 87a9825af1cb..d479e1059a36 100644 --- a/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml +++ b/packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml @@ -41,7 +41,7 @@ android:fontFamily="@font/clock" android:elegantTextHeight="false" android:singleLine="true" - android:fontFeatureSettings="pnum" + android:fontFeatureSettings="pnum, cv03, cv04" chargeAnimationDelay="350" dozeWeight="200" lockScreenWeight="400" @@ -63,6 +63,7 @@ android:fontFamily="@font/clock" android:typeface="monospace" android:elegantTextHeight="false" + android:fontFeatureSettings="tnum, cv03, cv04" chargeAnimationDelay="200" dozeWeight="200" lockScreenWeight="400" -- cgit v1.2.3