diff options
author | Danny Lin <danny@kdrag0n.dev> | 2021-10-06 18:40:12 -0700 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-05-05 00:39:05 +0800 |
commit | ed8a0847c3393005680bdbb1cc136b22e67f442f (patch) | |
tree | b848ff86c2d10c1cddd1194dae217c556ca91990 /data | |
parent | e008b2b0cf33807f50e20398798ccf111bbef96c (diff) |
fonts: Use variable font for Roboto Regular
I'm not sure why Google decided to revert to a static variant of *only*
the regular non-italic and non-condensed weight, but using the default
"Roboto" font for the lock screen clock (i.e. AOSP default) is broken
with the change:
- Clock is too bold when notifications are present (because SystemUI
loads the regular font but can't change the weight to be less
bold)
- Weight animation between lock screen and AOD is broken (because
weight can't be animated without the variable font)
- AOD clock font is too bold (could cause burn-in)
Switch back to the variable font in order to fix the clock issues.
Change-Id: Ia2e5ef52e4edb5d4275f6d5faf8c74266b784762
Diffstat (limited to 'data')
-rw-r--r-- | data/fonts/fonts.xml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/data/fonts/fonts.xml b/data/fonts/fonts.xml index 4ae0fc4ae6ed..48da31b90eed 100644 --- a/data/fonts/fonts.xml +++ b/data/fonts/fonts.xml @@ -39,7 +39,11 @@ <axis tag="wdth" stylevalue="100" /> <axis tag="wght" stylevalue="300" /> </font> - <font weight="400" style="normal">RobotoStatic-Regular.ttf</font> + <font weight="400" style="normal">Roboto-Regular.ttf + <axis tag="ital" stylevalue="0" /> + <axis tag="wdth" stylevalue="100" /> + <axis tag="wght" stylevalue="400" /> + </font> <font weight="500" style="normal">Roboto-Regular.ttf <axis tag="ital" stylevalue="0" /> <axis tag="wdth" stylevalue="100" /> |