| 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_mac_DEFINED | 8 #ifndef SkTypeface_mac_DEFINED |
| 9 #define SkTypeface_mac_DEFINED | 9 #define SkTypeface_mac_DEFINED |
| 10 | 10 |
| 11 #include "SkTypeface.h" | 11 #include "SkTypeface.h" |
| 12 | 12 |
| 13 #if defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) |
| 14 |
| 13 #include <CoreFoundation/CoreFoundation.h> | 15 #include <CoreFoundation/CoreFoundation.h> |
| 14 | 16 |
| 15 #ifdef SK_BUILD_FOR_MAC | 17 #ifdef SK_BUILD_FOR_MAC |
| 16 #import <ApplicationServices/ApplicationServices.h> | 18 #import <ApplicationServices/ApplicationServices.h> |
| 17 #endif | 19 #endif |
| 18 | 20 |
| 19 #ifdef SK_BUILD_FOR_IOS | 21 #ifdef SK_BUILD_FOR_IOS |
| 20 #include <CoreText/CoreText.h> | 22 #include <CoreText/CoreText.h> |
| 21 #endif | 23 #endif |
| 22 | 24 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 36 * given SkTypeface. Note that the returned CTFontRef gets | 38 * given SkTypeface. Note that the returned CTFontRef gets |
| 37 * released when the source SkTypeface is destroyed. | 39 * released when the source SkTypeface is destroyed. |
| 38 * | 40 * |
| 39 * This method is deprecated. It may only be used by Blink Mac | 41 * This method is deprecated. It may only be used by Blink Mac |
| 40 * legacy code in special cases related to text-shaping | 42 * legacy code in special cases related to text-shaping |
| 41 * with AAT fonts, clipboard handling and font fallback. | 43 * with AAT fonts, clipboard handling and font fallback. |
| 42 * See https://code.google.com/p/skia/issues/detail?id=3408 | 44 * See https://code.google.com/p/skia/issues/detail?id=3408 |
| 43 */ | 45 */ |
| 44 SK_API extern CTFontRef SkTypeface_GetCTFontRef(const SkTypeface* face); | 46 SK_API extern CTFontRef SkTypeface_GetCTFontRef(const SkTypeface* face); |
| 45 | 47 |
| 46 #endif | 48 #endif // defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) |
| 49 #endif // SkTypeface_mac_DEFINED |
| OLD | NEW |