summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Lin <danny@kdrag0n.dev>2021-10-06 18:40:12 -0700
committeralk3pInjection <webmaster@raspii.tech>2022-01-26 11:42:56 +0800
commit2e997af2534ac6c209444e5d5c4c5f6c405a732d (patch)
treeaa9449eb28b4c3a1ade2d92acb8e4bcd7877ebe0
parent2b27897191f5188054329737bf4f37c2a832cb2b (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
-rw-r--r--data/fonts/fonts.xml6
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" />