skia2/tools/fonts
Ben Wagner 81eabce6a3 SkCustomTypefaceBuilder to set SkFontStyle
Allow the user of SkCustomTypefaceBuilder to set the SkFontStyle of the
resulting SkTypeface. This allows users to build font families.

Fix the Font_flatten test to actually work (instead of relying on the
magic behavior of nullptr for SkTypeface), add a test with the custom
typeface, and reduce the number of times the inner loop runs from
302,400 times to 4,032 times so that the test finishes in a reasonable
amount of time.

Bug: skia:10630
Change-Id: I0b5e939552ee4a9a1249eefbb7a7279a59b38e5a
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/311596
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Xiao Yu <xster@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
2020-08-19 00:09:55 +00:00
..
create_test_font_color.cpp Add SkMakeSpan and helpful conversion 2019-07-02 21:49:09 +00:00
create_test_font.cpp Include the SkTSort header only where it is used. 2020-07-14 14:19:06 +00:00
generate_fir_coeff.py [minor] mark scripts as executable 2019-11-21 17:06:27 +00:00
RandomScalerContext.cpp use std::make_unique 2019-12-12 22:32:45 +00:00
RandomScalerContext.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +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 Move scaler context fallback to GDI 2020-02-11 19:50:27 +00:00
TestFontMgr.cpp rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
TestFontMgr.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
TestSVGTypeface.cpp Enable ClangTidy check readability-redundant-smartptr-get. 2020-08-16 15:56:48 +00:00
TestSVGTypeface.h rewrite includes to not need so much -Ifoo 2019-04-24 16:27:11 +00:00
TestTypeface.cpp Correct TestTypeface::onCharsToGlyphs signature. 2020-05-19 19:55:25 +00:00
TestTypeface.h Fix clang 12 Wsuggest-override and Wsuggest-destructor-override 2020-07-22 01:11:36 +00:00
ToolUtilsFont.cpp SkCustomTypefaceBuilder to set SkFontStyle 2020-08-19 00:09:55 +00:00