diff options
author | 2012-10-12 18:48:35 +0000 | |
---|---|---|
committer | 2012-10-12 18:48:35 +0000 | |
commit | cb1bbb375aa4fdd099dc60302ca1712f04607782 (patch) | |
tree | 1f02fcf98c4403e81804d63f026ed3692fc50891 /include | |
parent | 9a4c746a1f0f91a5be2708a4c2018dfe14f62e48 (diff) |
Fonts with cubic outlines are rendered without ClearType by GDI.
https://codereview.appspot.com/6643060/
git-svn-id: http://skia.googlecode.com/svn/trunk@5929 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkFontHost.h | 4 | ||||
-rw-r--r-- | include/core/SkTypeface.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/core/SkFontHost.h b/include/core/SkFontHost.h index 86fcac0451..737b2eb4c4 100644 --- a/include/core/SkFontHost.h +++ b/include/core/SkFontHost.h @@ -167,8 +167,10 @@ public: the same output. A lazy (but valid) fonthost can do nothing in its FilterRec routine. + + The provided typeface corresponds to the fFontID field. */ - static void FilterRec(SkScalerContextRec* rec); + static void FilterRec(SkScalerContextRec* rec, SkTypeface* typeface); /////////////////////////////////////////////////////////////////////////// diff --git a/include/core/SkTypeface.h b/include/core/SkTypeface.h index 78ec9f7cb6..7fb6b810d0 100644 --- a/include/core/SkTypeface.h +++ b/include/core/SkTypeface.h @@ -189,6 +189,9 @@ protected: SkTypeface(Style style, SkFontID uniqueID, bool isFixedWidth = false); virtual ~SkTypeface(); + friend class SkScalerContext; + static SkTypeface* GetDefaultTypeface(); + private: SkFontID fUniqueID; Style fStyle; |