diff options
author | Hal Canary <halcanary@google.com> | 2017-03-06 16:18:49 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-08 16:35:24 +0000 |
commit | aa3af7b4692932c4fab4109b2d9f29ae40e49ad5 (patch) | |
tree | c08b4e6655ed5c29befb3ac336190a993e3ecdca /src/ports/SkFontHost_mac.cpp | |
parent | 8de05ffcb26c757a6169e217ef46105286811dd9 (diff) |
SkPDF: Always get advances at unitsPerEm.
* Work around BUG=chromium:696356
* SkTestScalerContext needs a return a em-size.
* SkPDFFont::MakeVectorCache which always produces a glyph
cache at emsize. Replaces vector_cache().
* Stop looking at fLastGlyphID and fEmSize in TypefaceMetrics.
Change-Id: I28d93b8f62d461a60fa046e9aaf7fa6d116a7ee5
Reviewed-on: https://skia-review.googlesource.com/9324
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'src/ports/SkFontHost_mac.cpp')
-rw-r--r-- | src/ports/SkFontHost_mac.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/ports/SkFontHost_mac.cpp b/src/ports/SkFontHost_mac.cpp index 21017e114c..a9b8ccd91c 100644 --- a/src/ports/SkFontHost_mac.cpp +++ b/src/ports/SkFontHost_mac.cpp @@ -1501,8 +1501,6 @@ SkAdvancedTypefaceMetrics* SkTypeface_Mac::onGetAdvancedTypefaceMetrics( } CFIndex glyphCount = CTFontGetGlyphCount(ctFont.get()); - info->fLastGlyphID = SkToU16(glyphCount - 1); - info->fEmSize = CTFontGetUnitsPerEm(ctFont.get()); if (perGlyphInfo & kToUnicode_PerGlyphInfo) { populate_glyph_to_unicode(ctFont.get(), glyphCount, &info->fGlyphToUnicode); |