diff options
author | halcanary <halcanary@google.com> | 2016-08-09 13:04:34 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-09 13:04:34 -0700 |
commit | 8eccc308c8adcdf26ffc7c4dd538b71f33c6f22b (patch) | |
tree | a05b3bfa26ccf05e733b0776a0e1fe788fad5528 /src/pdf/SkPDFFont.h | |
parent | 9bc1187249f27ffed448b49ad75fd226d8181241 (diff) |
SkPDF: SkPDFFont organization changes.
SkPDFFont:
- SkPDFType1Font::populate() encode advances correctly.
- break out logically independent code into new files:
* SkPDFConvertType1FontStream
* SkPDFMakeToUnicodeCmap
SkPDFFont.cpp is now 380 lines smaller.
Expose `SkPDFAppendCmapSections()` for testing.
SkPDFFontImpl.h
- Fold into SkPDFFont.
SkPDFConvertType1FontStream:
- Now assume given a SkStreamAsset
SkPDFFont:
- AdvanceMetric now hidden in a anonymous namespace.
No public API changes.
TBR=reed@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2221163002
Review-Url: https://codereview.chromium.org/2221163002
Diffstat (limited to 'src/pdf/SkPDFFont.h')
-rw-r--r-- | src/pdf/SkPDFFont.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pdf/SkPDFFont.h b/src/pdf/SkPDFFont.h index 0d73745984..c55f650769 100644 --- a/src/pdf/SkPDFFont.h +++ b/src/pdf/SkPDFFont.h @@ -120,6 +120,12 @@ public: SkTypeface* typeface, uint16_t glyphID); + static sk_sp<const SkAdvancedTypefaceMetrics> GetFontMetricsWithGlyphNames( + SkTypeface*, uint32_t* glyphs, uint32_t glyphsCount); + + static sk_sp<const SkAdvancedTypefaceMetrics> GetFontMetricsWithToUnicode( + SkTypeface*, uint32_t* glyphs, uint32_t glyphsCount); + /** Subset the font based on usage set. Returns a SkPDFFont instance with * subset. * @param usage Glyph subset requested. |