OLD | NEW |
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 18 matching lines...) Expand all Loading... |
29 * Set an optional callback to ensure that the data behind a LOGFONT is loaded
. | 29 * Set an optional callback to ensure that the data behind a LOGFONT is loaded
. |
30 * This will get called if Skia tries to access the data but hits a failure. | 30 * This will get called if Skia tries to access the data but hits a failure. |
31 * Normally this is null, and is only required if the font data needs to be | 31 * Normally this is null, and is only required if the font data needs to be |
32 * remotely (re)loaded. | 32 * remotely (re)loaded. |
33 */ | 33 */ |
34 SK_API void SkTypeface_SetEnsureLOGFONTAccessibleProc(void (*)(const LOGFONT&)); | 34 SK_API void SkTypeface_SetEnsureLOGFONTAccessibleProc(void (*)(const LOGFONT&)); |
35 | 35 |
36 // Experimental! | 36 // Experimental! |
37 // | 37 // |
38 class SkFontMgr; | 38 class SkFontMgr; |
| 39 class SkRemotableFontMgr; |
| 40 |
39 SK_API SkFontMgr* SkFontMgr_New_GDI(); | 41 SK_API SkFontMgr* SkFontMgr_New_GDI(); |
40 SK_API SkFontMgr* SkFontMgr_New_DirectWrite(); | 42 SK_API SkFontMgr* SkFontMgr_New_DirectWrite(); |
41 | 43 |
| 44 /** |
| 45 * Creates an SkFontMgr which renders using DirectWrite and obtains its data |
| 46 * from the SkRemotableFontMgr. |
| 47 * |
| 48 * If DirectWrite could not be initialized, will return NULL. |
| 49 */ |
| 50 SK_API SkFontMgr* SkFontMgr_New_DirectWriteRenderer(SkRemotableFontMgr*); |
| 51 |
| 52 /** |
| 53 * Creates an SkRemotableFontMgr backed by DirectWrite using the default |
| 54 * system font collection in the current locale. |
| 55 * |
| 56 * If DirectWrite could not be initialized, will return NULL. |
| 57 */ |
| 58 SK_API SkRemotableFontMgr* SkRemotableFontMgr_New_DirectWrite(); |
| 59 |
42 #endif | 60 #endif |
OLD | NEW |