diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-21 22:48:32 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-21 22:48:32 +0000 |
commit | 72cf4fcafa54cfa04c5ec7cb8eaa3acb144712dd (patch) | |
tree | f6d0aff66805377067c2345deefcb6a832f29ef4 /include/ports/SkTypeface_win.h | |
parent | 34ce63ca6b853724c152a116e1467c0eead87003 (diff) |
A remotable font management interface and DirectWrite implementation.
The introduced SkRemotableFontMgr is a font management interface designed for simple and fast proxy support. SkFontMgr_Indirect bridges a SkRemotableFontMgr and a local SkFontMgr to present a SkFontMgr interface.
This change is to be followed by https://codereview.chromium.org/132113015/ and https://codereview.chromium.org/206693003 .
R=reed@google.com
Review URL: https://codereview.chromium.org/206683002
git-svn-id: http://skia.googlecode.com/svn/trunk@13897 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/ports/SkTypeface_win.h')
-rw-r--r-- | include/ports/SkTypeface_win.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/ports/SkTypeface_win.h b/include/ports/SkTypeface_win.h index e7dd4ab50a..77173e2cf7 100644 --- a/include/ports/SkTypeface_win.h +++ b/include/ports/SkTypeface_win.h @@ -36,7 +36,25 @@ SK_API void SkTypeface_SetEnsureLOGFONTAccessibleProc(void (*)(const LOGFONT&)); // Experimental! // class SkFontMgr; +class SkRemotableFontMgr; + SK_API SkFontMgr* SkFontMgr_New_GDI(); SK_API SkFontMgr* SkFontMgr_New_DirectWrite(); +/** + * Creates an SkFontMgr which renders using DirectWrite and obtains its data + * from the SkRemotableFontMgr. + * + * If DirectWrite could not be initialized, will return NULL. + */ +SK_API SkFontMgr* SkFontMgr_New_DirectWriteRenderer(SkRemotableFontMgr*); + +/** + * Creates an SkRemotableFontMgr backed by DirectWrite using the default + * system font collection in the current locale. + * + * If DirectWrite could not be initialized, will return NULL. + */ +SK_API SkRemotableFontMgr* SkRemotableFontMgr_New_DirectWrite(); + #endif |