Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(945)

Unified Diff: src/pdf/SkPDFFont.cpp

Issue 1157163007: SkPDF: fall back on paths for unembeddable fonts. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-07-15 (Wednesday) 10:13:03 EDT Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/pdf/SkPDFFont.cpp
diff --git a/src/pdf/SkPDFFont.cpp b/src/pdf/SkPDFFont.cpp
index d8755ae9a38572bfe9cca0a73864e479a6c40278..85c3a87064d6b2cb60c44a19854e87673e95262f 100644
--- a/src/pdf/SkPDFFont.cpp
+++ b/src/pdf/SkPDFFont.cpp
@@ -1419,3 +1419,8 @@ SkPDFFont::Match SkPDFFont::IsMatch(SkPDFFont* existingFont,
return (existingGlyphID == searchGlyphID) ? SkPDFFont::kExact_Match
: SkPDFFont::kRelated_Match;
}
+
+bool SkPDFFont::CanEmbedTypeface(SkTypeface* typeface) {
+ SkAutoResolveDefaultTypeface face(typeface);
+ return face->canEmbed();
+}

Powered by Google App Engine
This is Rietveld 408576698