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/pdf/SkPDFFont.h | |
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/pdf/SkPDFFont.h')
-rw-r--r-- | src/pdf/SkPDFFont.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pdf/SkPDFFont.h b/src/pdf/SkPDFFont.h index a14ae63572..3858b64ce1 100644 --- a/src/pdf/SkPDFFont.h +++ b/src/pdf/SkPDFFont.h @@ -15,6 +15,7 @@ #include "SkTDArray.h" #include "SkTypeface.h" +class SkAutoGlyphCache; class SkPDFCanon; class SkPDFFont; @@ -47,6 +48,8 @@ public: type == SkAdvancedTypefaceMetrics::kTrueType_Font; } + static SkAutoGlyphCache MakeVectorCache(SkTypeface*, int* sizeOut); + /** Returns true if this font encoding supports glyph IDs above 255. */ bool multiByteGlyphs() const { return SkPDFFont::IsMultiByte(this->getType()); } |