aboutsummaryrefslogtreecommitdiffhomepage
path: root/resources/fonts
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-03-08 16:02:55 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-09 15:03:20 +0000
commit03cd6e6dec894b3447527f84e7591d62981df433 (patch)
tree2319502c438ba05cda2d8ce462b80484e4d3ef9f /resources/fonts
parent74b429086122e19e82fe090fc999120ed48d3532 (diff)
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>
Diffstat (limited to 'resources/fonts')
-rw-r--r--resources/fonts/7630.otfbin0 -> 1168 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/resources/fonts/7630.otf b/resources/fonts/7630.otf
new file mode 100644
index 0000000000..355d0af275
--- /dev/null
+++ b/resources/fonts/7630.otf
Binary files differ