aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/pdf/SkPDFFont.h
diff options
context:
space:
mode:
authorGravatar halcanary <halcanary@google.com>2015-10-12 13:05:04 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-12 13:05:04 -0700
commit66a82f3872abf4ebb98b3915b2a9ecc73ad352c5 (patch)
treee8bafe893fcce8e95d9d8b20f0c7f12d80ea8e0e /src/pdf/SkPDFFont.h
parent88d064d0e481949184305c7b1d6b282dddffac39 (diff)
SkPDF: fall back on paths for unembeddable fonts.
Add GM, SkPDFFont::CanEmbedTypeface BUG=skia:3866 Review URL: https://codereview.chromium.org/1401763002
Diffstat (limited to 'src/pdf/SkPDFFont.h')
-rw-r--r--src/pdf/SkPDFFont.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pdf/SkPDFFont.h b/src/pdf/SkPDFFont.h
index 404e8b7621..ca0a51fca4 100644
--- a/src/pdf/SkPDFFont.h
+++ b/src/pdf/SkPDFFont.h
@@ -149,6 +149,12 @@ public:
uint32_t searchFontID,
uint16_t searchGlyphID);
+ /**
+ * Return false iff the typeface has its NotEmbeddable flag set.
+ * If typeface is NULL, the default typeface is checked.
+ */
+ static bool CanEmbedTypeface(SkTypeface*, SkPDFCanon*);
+
protected:
// Common constructor to handle common members.
SkPDFFont(const SkAdvancedTypefaceMetrics* fontInfo,