aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/viewer
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2018-04-05 11:57:17 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-05 19:38:48 +0000
commit93e4ea52f66320685d3bcd1d613d6cf36de5e080 (patch)
tree9703e712f6713c73f70020054c3b6c30ee2bacef /tools/viewer
parent87f852d1a30f040cfa0e9567b17ec236e14a0f41 (diff)
Mac to better serialize OTTO fonts.
Sometimes CoreText just gives up on filling out kCTFontFormatAttribute properly, in which case we need a simple fallback for format detection which isn't so reluctant to determine the type. The strategy prior to this change is to use the most common type (WindowsTrueType), but apparently if a font is actually an OpenType CFF font but has a WindowsTrueType tag as the first few bytes, CoreGraphics gives up and won't load the font. So check if there are any CFF tables and, if so, mark the font as OpenTypeCFF. BUG=skia:7630 Change-Id: Ie974e6db031db13628d5a19962e23ce2bf127367 Reviewed-on: https://skia-review.googlesource.com/118887 Commit-Queue: Mike Klein <mtklein@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
Diffstat (limited to 'tools/viewer')
0 files changed, 0 insertions, 0 deletions