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; |