summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Lin <danny@kdrag0n.dev>2021-10-05 21:02:19 -0700
committeralk3pInjection <webmaster@raspii.tech>2022-05-07 00:20:58 +0800
commit521bc0a65378c3f61f7ebe6dd040ffcda1d371e0 (patch)
tree21e908c67136ca2902505445f03553c83c9bd7ed
parent3d6216f6dd5574d6e0b8af91619f69275b34d01b (diff)
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
-rw-r--r--packages/SystemUI/res-keyguard/layout/keyguard_clock_switch.xml3
1 files changed, 2 insertions, 1 deletions
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"