summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Lin <danny@kdrag0n.dev>2021-06-08 09:24:06 -0700
committeralk3pInjection <webmaster@raspii.tech>2022-05-07 00:20:58 +0800
commitf3d2a41c3b24bb906e6de0203380ab1d2e7a2941 (patch)
tree55f5e4fbc1075efd575d855851e193e88d0bab1f
parentb0fb3401696d27f8a9e868cc5d511d86732624cc (diff)
fonts: Use fallback variant of Roboto
Inter is missing some glyphs that users have come to expect on Android, so use Roboto as a fallback to fix excessive tofu in some text. Because Inter's name has been replaced with "Roboto" for compatibility, the fallback variants are named "Roboto Fallback". Example of text with missing glyphs in Inter: ⅙⅐⅛⅑⅒¹½⅓¼⅕ NB: requires vendor commit "fonts: Add fallback variant of Roboto" Change-Id: I4affbde067bc51366a84a93b48a9c373567dca05
-rw-r--r--data/fonts/fonts.xml92
1 files changed, 92 insertions, 0 deletions
diff --git a/data/fonts/fonts.xml b/data/fonts/fonts.xml
index 48da31b90eed..85654af42bec 100644
--- a/data/fonts/fonts.xml
+++ b/data/fonts/fonts.xml
@@ -275,6 +275,98 @@
<alias name="source-sans-pro-semi-bold" to="source-sans-pro" weight="600"/>
<!-- fallback fonts -->
+ <family>
+ <font weight="100" style="normal">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="0"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="100"/>
+ </font>
+ <font weight="100" style="italic">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="1"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="100"/>
+ </font>
+ <font weight="200" style="normal">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="0"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="200"/>
+ </font>
+ <font weight="200" style="italic">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="1"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="200"/>
+ </font>
+ <font weight="300" style="normal">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="0"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="300"/>
+ </font>
+ <font weight="300" style="italic">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="1"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="300"/>
+ </font>
+ <font weight="400" style="normal">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="0"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="400"/>
+ </font>
+ <font weight="400" style="italic">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="1"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="400"/>
+ </font>
+ <font weight="500" style="normal">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="0"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="500"/>
+ </font>
+ <font weight="500" style="italic">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="1"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="500"/>
+ </font>
+ <font weight="600" style="normal">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="0"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="600"/>
+ </font>
+ <font weight="600" style="italic">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="1"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="600"/>
+ </font>
+ <font weight="700" style="normal">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="0"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="700"/>
+ </font>
+ <font weight="700" style="italic">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="1"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="700"/>
+ </font>
+ <font weight="800" style="normal">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="0"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="800"/>
+ </font>
+ <font weight="800" style="italic">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="1"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="800"/>
+ </font>
+ <font weight="900" style="normal">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="0"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="900"/>
+ </font>
+ <font weight="900" style="italic">RobotoFallback-VF.ttf
+ <axis tag="ital" stylevalue="1"/>
+ <axis tag="wdth" stylevalue="100"/>
+ <axis tag="wght" stylevalue="900"/>
+ </font>
+ </family>
<family lang="und-Arab" variant="elegant">
<font weight="400" style="normal" postScriptName="NotoNaskhArabic">
NotoNaskhArabic-Regular.ttf