| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 SK_API SkFontMgr* SkFontMgr_New_DirectWrite(IDWriteFactory* factory, | 50 SK_API SkFontMgr* SkFontMgr_New_DirectWrite(IDWriteFactory* factory, |
| 51 IDWriteFontCollection* collection, | 51 IDWriteFontCollection* collection, |
| 52 IDWriteFontFallback* fallback); | 52 IDWriteFontFallback* fallback); |
| 53 | 53 |
| 54 /** | 54 /** |
| 55 * Creates an SkFontMgr which renders using DirectWrite and obtains its data | 55 * Creates an SkFontMgr which renders using DirectWrite and obtains its data |
| 56 * from the SkRemotableFontMgr. | 56 * from the SkRemotableFontMgr. |
| 57 * | 57 * |
| 58 * If DirectWrite could not be initialized, will return NULL. | 58 * If DirectWrite could not be initialized, will return NULL. |
| 59 */ | 59 */ |
| 60 SK_API SkFontMgr* SkFontMgr_New_DirectWriteRenderer(SkRemotableFontMgr*); | 60 SK_API SkFontMgr* SkFontMgr_New_DirectWriteRenderer(sk_sp<SkRemotableFontMgr>); |
| 61 | 61 |
| 62 /** | 62 /** |
| 63 * Creates an SkRemotableFontMgr backed by DirectWrite using the default | 63 * Creates an SkRemotableFontMgr backed by DirectWrite using the default |
| 64 * system font collection in the current locale. | 64 * system font collection in the current locale. |
| 65 * | 65 * |
| 66 * If DirectWrite could not be initialized, will return NULL. | 66 * If DirectWrite could not be initialized, will return NULL. |
| 67 */ | 67 */ |
| 68 SK_API SkRemotableFontMgr* SkRemotableFontMgr_New_DirectWrite(); | 68 SK_API SkRemotableFontMgr* SkRemotableFontMgr_New_DirectWrite(); |
| 69 | 69 |
| 70 #endif // SK_BUILD_FOR_WIN | 70 #endif // SK_BUILD_FOR_WIN |
| 71 #endif // SkTypeface_win_DEFINED | 71 #endif // SkTypeface_win_DEFINED |
| OLD | NEW |