| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #include "SkAdvancedTypefaceMetrics.h" | 10 #include "SkAdvancedTypefaceMetrics.h" |
| 11 #include "SkTypes.h" | 11 #include "SkTypes.h" |
| 12 | 12 |
| 13 #if defined(SK_BUILD_FOR_WIN) | 13 #if defined(SK_BUILD_FOR_WIN) |
| 14 #include <dwrite.h> | 14 #include <dwrite.h> |
| 15 #endif | 15 #endif |
| 16 | 16 |
| 17 #if defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID) | 17 #if defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID) |
| 18 // forward declare structs needed for getAdvanceData() template for freetype | 18 // forward declare structs needed for getAdvanceData() template for freetype |
| 19 struct FT_FaceRec_; | 19 struct FT_FaceRec; |
| 20 typedef struct FT_FaceRec_* FT_Face; | 20 typedef struct FT_FaceRec_* FT_Face; |
| 21 #endif | 21 #endif |
| 22 | 22 |
| 23 #ifdef SK_BUILD_FOR_MAC | 23 #ifdef SK_BUILD_FOR_MAC |
| 24 #import <ApplicationServices/ApplicationServices.h> | 24 #import <ApplicationServices/ApplicationServices.h> |
| 25 #endif | 25 #endif |
| 26 | 26 |
| 27 #ifdef SK_BUILD_FOR_IOS | 27 #ifdef SK_BUILD_FOR_IOS |
| 28 #include <CoreText/CoreText.h> | 28 #include <CoreText/CoreText.h> |
| 29 #include <CoreGraphics/CoreGraphics.h> | 29 #include <CoreGraphics/CoreGraphics.h> |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 | 308 |
| 309 // additional declaration needed for testing with a face of an unknown type | 309 // additional declaration needed for testing with a face of an unknown type |
| 310 template SkAdvancedTypefaceMetrics::WidthRange* getAdvanceData( | 310 template SkAdvancedTypefaceMetrics::WidthRange* getAdvanceData( |
| 311 void* fontData, | 311 void* fontData, |
| 312 int num_glyphs, | 312 int num_glyphs, |
| 313 const uint32_t* subsetGlyphIDs, | 313 const uint32_t* subsetGlyphIDs, |
| 314 uint32_t subsetGlyphIDsLength, | 314 uint32_t subsetGlyphIDsLength, |
| 315 bool (*getAdvance)(void* fontData, int gId, int16_t* data)); | 315 bool (*getAdvance)(void* fontData, int gId, int16_t* data)); |
| 316 | 316 |
| 317 } // namespace skia_advanced_typeface_metrics_utils | 317 } // namespace skia_advanced_typeface_metrics_utils |
| OLD | NEW |