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

Side by Side Diff: include/ports/SkTypeface_win.h

Issue 1607083003: Allow custom font collection for DirectWrite font manager. (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/ports/SkFontMgr_win_dw.cpp » ('j') | src/ports/SkFontMgr_win_dw.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkTypeface_win_DEFINED 8 #ifndef SkTypeface_win_DEFINED
9 #define SkTypeface_win_DEFINED 9 #define SkTypeface_win_DEFINED
10 10
(...skipping 22 matching lines...) Expand all
33 * Normally this is null, and is only required if the font data needs to be 33 * Normally this is null, and is only required if the font data needs to be
34 * remotely (re)loaded. 34 * remotely (re)loaded.
35 */ 35 */
36 SK_API void SkTypeface_SetEnsureLOGFONTAccessibleProc(void (*)(const LOGFONT&)); 36 SK_API void SkTypeface_SetEnsureLOGFONTAccessibleProc(void (*)(const LOGFONT&));
37 37
38 // Experimental! 38 // Experimental!
39 // 39 //
40 class SkFontMgr; 40 class SkFontMgr;
41 class SkRemotableFontMgr; 41 class SkRemotableFontMgr;
42 struct IDWriteFactory; 42 struct IDWriteFactory;
43 struct IDWriteFontCollection;
43 44
44 SK_API SkFontMgr* SkFontMgr_New_GDI(); 45 SK_API SkFontMgr* SkFontMgr_New_GDI();
45 SK_API SkFontMgr* SkFontMgr_New_DirectWrite(IDWriteFactory* factory = NULL); 46 SK_API SkFontMgr* SkFontMgr_New_DirectWrite(IDWriteFactory* factory = NULL,
47 IDWriteFontCollection* collection = NULL);
46 48
47 /** 49 /**
48 * Creates an SkFontMgr which renders using DirectWrite and obtains its data 50 * Creates an SkFontMgr which renders using DirectWrite and obtains its data
49 * from the SkRemotableFontMgr. 51 * from the SkRemotableFontMgr.
50 * 52 *
51 * If DirectWrite could not be initialized, will return NULL. 53 * If DirectWrite could not be initialized, will return NULL.
52 */ 54 */
53 SK_API SkFontMgr* SkFontMgr_New_DirectWriteRenderer(SkRemotableFontMgr*); 55 SK_API SkFontMgr* SkFontMgr_New_DirectWriteRenderer(SkRemotableFontMgr*);
54 56
55 /** 57 /**
56 * Creates an SkRemotableFontMgr backed by DirectWrite using the default 58 * Creates an SkRemotableFontMgr backed by DirectWrite using the default
57 * system font collection in the current locale. 59 * system font collection in the current locale.
58 * 60 *
59 * If DirectWrite could not be initialized, will return NULL. 61 * If DirectWrite could not be initialized, will return NULL.
60 */ 62 */
61 SK_API SkRemotableFontMgr* SkRemotableFontMgr_New_DirectWrite(); 63 SK_API SkRemotableFontMgr* SkRemotableFontMgr_New_DirectWrite();
62 64
63 #endif // SK_BUILD_FOR_WIN 65 #endif // SK_BUILD_FOR_WIN
64 #endif // SkTypeface_win_DEFINED 66 #endif // SkTypeface_win_DEFINED
OLDNEW
« no previous file with comments | « no previous file | src/ports/SkFontMgr_win_dw.cpp » ('j') | src/ports/SkFontMgr_win_dw.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698