Add a gzip'ed svgDoc to SampleSVG.ttf

The OT-SVG specification allows individual svgDoc inside the SVG table
to be optionaly gzip'ed. Add a glyph to SampleSVG.ttf which uses a
compressed svgDoc so that this can be tested.

This font crashes vanilla FreeType 2.12.0 and 2.12.1. This issue was
fixed with [0] and backported to Debian in 2.12.1+dfsg-3 [1].

[0] c26872ed59
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1013094

Change-Id: I45e115a743b8aa4d545f34c9668597d22e0a2bf4
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/545779
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Herb Derby <herb@google.com>
This commit is contained in:
Ben Wagner 2022-06-01 17:02:53 -04:00 committed by SkCQ
parent 4a3521e119
commit ae7ec913ca
2 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ protected:
{ Test::Source::Resource, "fonts/sbix.ttf" , sampleText },
{ Test::Source::Resource, "fonts/cbdt.ttf" , sampleText },
{ Test::Source::Portable, "Emoji" , sampleText },
{ Test::Source::Resource, "fonts/SampleSVG.ttf", "abcdefghi" },
{ Test::Source::Resource, "fonts/SampleSVG.ttf", "abcdefghij" },
};
sk_sp<SkTypeface> typefaces[std::size(tests)];
void onOnceBeforeDraw() override {

Binary file not shown.