diff options
author | Ben Wagner <bungeman@google.com> | 2017-11-13 11:14:36 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-13 17:00:31 +0000 |
commit | f1729a79379d65d7d373594e4f0d713d99beb1f2 (patch) | |
tree | 4e04e21c85b9cadf93dca3cc9e48394066050459 /resources | |
parent | f44754a42b9d5ced2e6f075b4bd058a498488d3a (diff) |
Extract Android FontMgr part of Typeface test.
Part of the Typeface test is Android specific and tests that the Android
legacyMakeTypeface returns nullptr when called with a non-null family
name and there is no match. A new FontMgrAndroidLegacyMakeTypeface test
is introduced to test this and also properly test creating one with
SkFontMgr_Android_CustomFonts.
Change-Id: Iceb8b9b5490f5eeeaeac30a68daf2c4daac53c86
Reviewed-on: https://skia-review.googlesource.com/70660
Reviewed-by: Mike Klein <mtklein@chromium.org>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'resources')
-rw-r--r-- | resources/fonts/fonts.xml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/resources/fonts/fonts.xml b/resources/fonts/fonts.xml new file mode 100644 index 0000000000..a60d322359 --- /dev/null +++ b/resources/fonts/fonts.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<familyset version="21"> + <!-- first font is default --> + <family name="sans-serif"> + <font weight="100" style="normal"><axis tag="wght" stylevalue="0.5"/>Distortable.ttf</font> + <font weight="200" style="normal"><axis tag="wght" stylevalue="0.65"/>Distortable.ttf</font> + <font weight="300" style="normal"><axis tag="wght" stylevalue="0.85"/>Distortable.ttf</font> + <font weight="400" style="normal"><axis tag="wght" stylevalue="1.0"/>Distortable.ttf</font> + <font weight="500" style="normal"><axis tag="wght" stylevalue="1.2"/>Distortable.ttf</font> + <font weight="600" style="normal"><axis tag="wght" stylevalue="1.4"/>Distortable.ttf</font> + <font weight="700" style="normal"><axis tag="wght" stylevalue="1.6"/>Distortable.ttf</font> + <font weight="800" style="normal"><axis tag="wght" stylevalue="1.8"/>Distortable.ttf</font> + <font weight="900" style="normal"><axis tag="wght" stylevalue="2.0"/>Distortable.ttf</font> + </family> + <alias name="sans-serif-thin" to="sans-serif" weight="100" /> + <alias name="sans-serif-light" to="sans-serif" weight="300" /> + <alias name="sans-serif-black" to="sans-serif" weight="900" /> + <alias name="arial" to="sans-serif" /> + <alias name="helvetica" to="sans-serif" /> + <alias name="tahoma" to="sans-serif" /> + <alias name="verdana" to="sans-serif" /> + + <!-- fallback fonts --> + <family name="Em"><font weight="400" style="normal">Em.ttf</font></family> + <family name="HangingS"><font weight="400" style="normal">HangingS.ttf</font></family> + <family name="HintGasp"><font weight="400" style="normal">hintgasp.ttf</font></family> + <family name="RTeallyBigA"><font weight="400" style="normal">ReallyBigA.ttf</font></family> + <family name="Spider"><font weight="400" style="normal">SpiderSymbol.ttf</font></family> + <family name="TestTTC0"><font weight="400" style="normal" index="0">test.ttc</font></family> + <family name="TestTTC1"><font weight="400" style="normal" index="1">test.ttc</font></family> + <family name="Funkster"><font weight="400" style="normal">Funkster.ttf</font></family> +</familyset> |