diff options
author | halcanary <halcanary@google.com> | 2016-08-12 07:59:38 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-12 07:59:38 -0700 |
commit | 7e8d5d3519ea2d4c7f158ff9737843e20daad0cb (patch) | |
tree | 3df7ff4e9de0e2b177900f589cb32cdc9e466290 /src/pdf/SkPDFFont.h | |
parent | 70c43efb6e83fb034f387ffd767b5a4fcbca6ea1 (diff) |
SkPDF: Subset Type3 (fallback) font
Motivation: significant file-size reduction.
Also: SkPDFFont::subsetFont() returns a sk_sp<SkPDFObject>
rather than a SkPDFFont*.
SkPDFType3Font constructor no longer populates font info;
relies on subsetting.
SkPDFFont::Create is easier to read
Also: SkPDFType3Font are scaled by emSize rather than 1000.
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2231483002
Committed: https://skia.googlesource.com/skia/+/88b138da99328b04cae9a8ee19c3882b8847a550
Review-Url: https://codereview.chromium.org/2231483002
Diffstat (limited to 'src/pdf/SkPDFFont.h')
-rw-r--r-- | src/pdf/SkPDFFont.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pdf/SkPDFFont.h b/src/pdf/SkPDFFont.h index c55f650769..acf9bf87ee 100644 --- a/src/pdf/SkPDFFont.h +++ b/src/pdf/SkPDFFont.h @@ -132,7 +132,7 @@ public: * @return nullptr if font does not support subsetting, a new instance * of SkPDFFont otherwise. */ - virtual SkPDFFont* getFontSubset(const SkPDFGlyphSet* usage); + virtual sk_sp<SkPDFObject> getFontSubset(const SkPDFGlyphSet* usage); enum Match { kExact_Match, |