aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/ports/SkTypeface_win.h
diff options
context:
space:
mode:
authorGravatar kulshin <kulshin@chromium.org>2016-02-03 07:22:52 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-03 07:22:52 -0800
commit69d160326659dcf64e1584018b713631ddbc061c (patch)
tree9bfb784b713e89a4a84125c900d522924cd54393 /include/ports/SkTypeface_win.h
parent37ed996f2d8960763578925a0a8210c59d59d8b0 (diff)
Add option to specify a font collection when creating a
DirectWrite font manager. The corresponding Chromium change can be found at https://codereview.chromium.org/1591883002/ . TBR=reed This is a trivial and long planned addition to the API. Review URL: https://codereview.chromium.org/1607083003
Diffstat (limited to 'include/ports/SkTypeface_win.h')
-rw-r--r--include/ports/SkTypeface_win.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/ports/SkTypeface_win.h b/include/ports/SkTypeface_win.h
index b7373986c9..da728ca3c0 100644
--- a/include/ports/SkTypeface_win.h
+++ b/include/ports/SkTypeface_win.h
@@ -40,9 +40,11 @@ SK_API void SkTypeface_SetEnsureLOGFONTAccessibleProc(void (*)(const LOGFONT&));
class SkFontMgr;
class SkRemotableFontMgr;
struct IDWriteFactory;
+struct IDWriteFontCollection;
SK_API SkFontMgr* SkFontMgr_New_GDI();
-SK_API SkFontMgr* SkFontMgr_New_DirectWrite(IDWriteFactory* factory = NULL);
+SK_API SkFontMgr* SkFontMgr_New_DirectWrite(IDWriteFactory* factory = NULL,
+ IDWriteFontCollection* collection = NULL);
/**
* Creates an SkFontMgr which renders using DirectWrite and obtains its data