d6f7e294e8
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> |
||
---|---|---|
.. | ||
BUILD.bazel | ||
create_test_font_color.cpp | ||
create_test_font.cpp | ||
generate_fir_coeff.py | ||
RandomScalerContext.cpp | ||
RandomScalerContext.h | ||
test_font_index.inc | ||
test_font_monospace.inc | ||
test_font_sans_serif.inc | ||
test_font_serif.inc | ||
TestEmptyTypeface.h | ||
TestFontMgr.cpp | ||
TestFontMgr.h | ||
TestSVGTypeface.cpp | ||
TestSVGTypeface.h | ||
TestTypeface.cpp | ||
TestTypeface.h | ||
ToolUtilsFont.cpp |