skia2/tools/fonts
Ben Wagner d6f7e294e8 Better report lack of SkSVG in test.
The `Typeface_glyph_to_char` test assumes that
`ToolUtils::emoji_typeface()` will always return an SkTypeface which
supports all the codepoints in `ToolUtils::emoji_sample_text()`.
However, it is possible in some configurations for there to be no
available emoji font. Detect this and provide a better massage about why
the test failed.

Correct the preprocessor directives in TestFontMgr.cpp so that the
"Emoji" and "Planet" test fonts are consistently defined and used.

Change-Id: Ibc18b03b272d9cb1187bd012a843e550af954565
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/506209
Auto-Submit: Ben Wagner <bungeman@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2022-02-09 17:43:52 +00:00
..
BUILD.bazel [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
create_test_font_color.cpp Reland "Fix compilation w/ "skia_enable_svg = false" (take 2)" 2021-09-01 17:54:08 +00:00
create_test_font.cpp Move SkSpan to include/, for use in public API 2021-05-12 13:19:32 +00:00
generate_fir_coeff.py Fix Python3 compatibility 2021-03-25 14:15:35 +00:00
RandomScalerContext.cpp Fix when a glyph has a path 2021-12-07 14:58:29 +00:00
RandomScalerContext.h Serialize foreground color caching requirement specialisation 2021-11-03 19:56:47 +00:00
test_font_index.inc Make create_test_font less global-ish. 2018-08-23 21:23:29 +00:00
test_font_monospace.inc use SkFontMetrics so we can deprecated the typedef 2018-11-12 15:03:03 +00:00
test_font_sans_serif.inc use SkFontMetrics so we can deprecated the typedef 2018-11-12 15:03:03 +00:00
test_font_serif.inc use SkFontMetrics so we can deprecated the typedef 2018-11-12 15:03:03 +00:00
TestEmptyTypeface.h Serialize foreground color caching requirement specialisation 2021-11-03 19:56:47 +00:00
TestFontMgr.cpp Better report lack of SkSVG in test. 2022-02-09 17:43:52 +00:00
TestFontMgr.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
TestSVGTypeface.cpp Plumbing for glyph drawable 2022-02-08 18:14:27 +00:00
TestSVGTypeface.h Serialize foreground color caching requirement specialisation 2021-11-03 19:56:47 +00:00
TestTypeface.cpp Fix when a glyph has a path 2021-12-07 14:58:29 +00:00
TestTypeface.h Serialize foreground color caching requirement specialisation 2021-11-03 19:56:47 +00:00
ToolUtilsFont.cpp use pathbuilder 2020-08-25 16:29:48 +00:00