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 |
11 #include "SkTypeface.h" | 11 #include "SkTypeface.h" |
12 | 12 |
| 13 #ifdef SK_BUILD_FOR_WIN |
| 14 |
13 /** | 15 /** |
14 * Like the other Typeface create methods, this returns a new reference to the | 16 * Like the other Typeface create methods, this returns a new reference to the |
15 * corresponding typeface for the specified logfont. The caller is responsible | 17 * corresponding typeface for the specified logfont. The caller is responsible |
16 * for calling unref() when it is finished. | 18 * for calling unref() when it is finished. |
17 */ | 19 */ |
18 SK_API SkTypeface* SkCreateTypefaceFromLOGFONT(const LOGFONT&); | 20 SK_API SkTypeface* SkCreateTypefaceFromLOGFONT(const LOGFONT&); |
19 | 21 |
20 /** | 22 /** |
21 * Copy the LOGFONT associated with this typeface into the lf parameter. Note | 23 * Copy the LOGFONT associated with this typeface into the lf parameter. Note |
22 * that the lfHeight will need to be set afterwards, since the typeface does | 24 * that the lfHeight will need to be set afterwards, since the typeface does |
(...skipping 28 matching lines...) Expand all Loading... |
51 SK_API SkFontMgr* SkFontMgr_New_DirectWriteRenderer(SkRemotableFontMgr*); | 53 SK_API SkFontMgr* SkFontMgr_New_DirectWriteRenderer(SkRemotableFontMgr*); |
52 | 54 |
53 /** | 55 /** |
54 * Creates an SkRemotableFontMgr backed by DirectWrite using the default | 56 * Creates an SkRemotableFontMgr backed by DirectWrite using the default |
55 * system font collection in the current locale. | 57 * system font collection in the current locale. |
56 * | 58 * |
57 * If DirectWrite could not be initialized, will return NULL. | 59 * If DirectWrite could not be initialized, will return NULL. |
58 */ | 60 */ |
59 SK_API SkRemotableFontMgr* SkRemotableFontMgr_New_DirectWrite(); | 61 SK_API SkRemotableFontMgr* SkRemotableFontMgr_New_DirectWrite(); |
60 | 62 |
61 #endif | 63 #endif // SK_BUILD_FOR_WIN |
| 64 #endif // SkTypeface_win_DEFINED |
OLD | NEW |