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

Unified Diff: include/core/SkTypeface.h

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: include/core/SkTypeface.h
diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h
index 9eac50e03f5ebb65df038ac46176db88e150322d..825cd2e79243232b698c982999845d493087f27f 100644
--- a/include/core/SkTypeface.h
+++ b/include/core/SkTypeface.h
@@ -77,6 +77,9 @@ public:
*/
bool isFixedPitch() const { return fIsFixedPitch; }
+ /** Returns true if the typeface does not set the do-not-embed bit. */
+ bool canEmbed() const;
+
/** Return a 32bit value for this typeface, unique for the underlying font
data. Will never return 0.
*/
@@ -375,6 +378,8 @@ protected:
virtual bool onComputeBounds(SkRect*) const;
+ virtual bool onCanEmbed() const;
+
private:
friend class SkGTypeface;
friend class SkPDFFont;

Powered by Google App Engine
This is Rietveld 408576698