skia2/resources/fonts
Dominik Röttsches 7646dffe58 Determine weight, width and slant from variable axes
Let variable axes override existing or determine style information
with priority over FreeType face flags or information
from the OS/2 table.

Add test case for matching a variable fonts through SkFontMgr_FCI to
ensure the weight determination from variable axes is exercise.
The test does not exercise width or slant.

Add a small (~8.5k) subsetted Noto Sans CJK collection as a test font
(made using [1]), and ensure that matching, reported font style and axis
configuration are correct after matching.

[1] https://github.com/drott/noto-cjk/blob/subsetVFttv/subsetvf.py

Bug: skia:12864, skia:12881
Change-Id: I1fb05d88f68eda308b8864d32d98400c68e46834
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/500516
Commit-Queue: Dominik Röttsches <drott@chromium.org>
Reviewed-by: Ben Wagner <bungeman@google.com>
Auto-Submit: Dominik Röttsches <drott@chromium.org>
Commit-Queue: Dominik Röttsches <drott@google.com>
2022-02-01 19:34:50 +00:00
..
abc
svg
7630.otf
ahem.ttf
cbdt.ttf
colr.ttf
colrv1_samples.ttf Add base outlines to colrv1 test font 2021-06-28 23:59:26 +00:00
Distortable.ttf
Em.ttf
fonts.xml
Funkster.ttf
HangingS.ttf
hintgasp.ttf
more_samples-glyf_colr_1.ttf [COLRv1] Take P2 into account again in gradient skewing 2022-01-13 18:16:50 +00:00
NotoSansCJK-VF-subset.otf.ttc Determine weight, width and slant from variable axes 2022-02-01 19:34:50 +00:00
planetcbdt.ttf
planetcolr.ttf
planetsbix.ttf
ReallyBigA.ttf
Roboto2-Regular_NoEmbed.ttf
Roboto2-Regular.pfa
Roboto2-Regular.pfb
Roboto-Regular.ttf
sbix.ttf
SpiderSymbol.ttf
Stroking.otf
Stroking.ttf
test.ttc
Variable.ttf
VaryAlongQuads.ttf