skia2/resources/fonts
Ben Wagner 03cd6e6dec Avoid serializing to 'typ1' on Mac.
CoreGraphics does not provide a means to get the original font data for a
CGFont, only the tables. As a result, Skia pieces the font data back
together when requested. The most awkward part of this is choosing the
first four bytes, and the CTFont suggestion seems to often be wrong.

This change doublechecks the selection of 'typ1', prefering to use 'OTTO'
if there are no 'TYP1' or 'CID ' tables. These sorts of fonts are
extremely old and unlikely to be in current use. It appears that CTFont
may report that it has this format if it is an 'OTTO' font with very few
glyphs. If Skia serializes such a font with 'typ1' as the first four
bytes, CoreGraphics will not create a CGFont from the resulting font data.

BUG=chromium:809763,skia:7630

Change-Id: I9979b9f0ebdd27c4ad0903e8ee6237241e755541
Reviewed-on: https://skia-review.googlesource.com/113306
Reviewed-by: Herb Derby <herb@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
2018-03-09 15:03:20 +00:00
..
7630.otf Avoid serializing to 'typ1' on Mac. 2018-03-09 15:03:20 +00:00
Distortable.ttf Move resource fonts to common location. 2015-04-30 17:12:58 -04:00
Em.ttf Add Em test font. 2015-05-29 08:42:21 -07:00
fonts.xml Extract Android FontMgr part of Typeface test. 2017-11-13 17:00:31 +00:00
Funkster.ttf Move resource fonts to common location. 2015-04-30 17:12:58 -04:00
HangingS.ttf Add HangingS.ttf to test large flourish caps. 2015-08-26 10:44:48 -07:00
hintgasp.ttf Use hintgasp font when testing rendering. 2016-07-12 06:55:25 -07:00
ReallyBigA.ttf Move resource fonts to common location. 2015-04-30 17:12:58 -04:00
Roboto2-Regular_NoEmbed.ttf SkPDF: fall back on paths for unembeddable fonts. 2015-10-12 13:05:04 -07:00
Roboto2-Regular.pfa GM: add test for type1 font 2016-09-20 13:11:01 -07:00
Roboto2-Regular.pfb GM: add test for type1 font 2016-09-20 13:11:01 -07:00
SpiderSymbol.ttf Add cmap 3,0 (symbol) as Unicode fallback. 2015-06-05 13:38:12 -07:00
test.ttc Move resource fonts to common location. 2015-04-30 17:12:58 -04:00