OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
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 #include "SkTypes.h" // Keep this before any #ifdef ... | 9 #include "SkTypes.h" // Keep this before any #ifdef ... |
10 | 10 |
11 #ifdef SK_BUILD_FOR_MAC | 11 #ifdef SK_BUILD_FOR_MAC |
12 #import <ApplicationServices/ApplicationServices.h> | 12 #import <ApplicationServices/ApplicationServices.h> |
13 #endif | 13 #endif |
14 | 14 |
15 #ifdef SK_BUILD_FOR_IOS | 15 #ifdef SK_BUILD_FOR_IOS |
16 #include <CoreText/CoreText.h> | 16 #include <CoreText/CoreText.h> |
17 #include <CoreText/CTFontManager.h> | 17 #include <CoreText/CTFontManager.h> |
18 #include <CoreGraphics/CoreGraphics.h> | 18 #include <CoreGraphics/CoreGraphics.h> |
19 #include <CoreFoundation/CoreFoundation.h> | 19 #include <CoreFoundation/CoreFoundation.h> |
20 #endif | 20 #endif |
21 | 21 |
22 #include "SkAdvancedTypefaceMetrics.h" | 22 #include "SkAdvancedTypefaceMetrics.h" |
23 #include "SkCGUtils.h" | 23 #include "SkCGUtils.h" |
24 #include "SkColorPriv.h" | 24 #include "SkColorPriv.h" |
25 #include "SkDescriptor.h" | 25 #include "SkDescriptor.h" |
26 #include "SkEndian.h" | 26 #include "SkEndian.h" |
| 27 #include "SkFontDescriptor.h" |
27 #include "SkFloatingPoint.h" | 28 #include "SkFloatingPoint.h" |
28 #include "SkFontDescriptor.h" | |
29 #include "SkFontMgr.h" | |
30 #include "SkGlyph.h" | 29 #include "SkGlyph.h" |
31 #include "SkLazyFnPtr.h" | 30 #include "SkLazyFnPtr.h" |
32 #include "SkMaskGamma.h" | 31 #include "SkMaskGamma.h" |
33 #include "SkMutex.h" | 32 #include "SkSFNTHeader.h" |
34 #include "SkOTTable_glyf.h" | 33 #include "SkOTTable_glyf.h" |
35 #include "SkOTTable_head.h" | 34 #include "SkOTTable_head.h" |
36 #include "SkOTTable_hhea.h" | 35 #include "SkOTTable_hhea.h" |
37 #include "SkOTTable_loca.h" | 36 #include "SkOTTable_loca.h" |
38 #include "SkOTUtils.h" | 37 #include "SkOTUtils.h" |
39 #include "SkPaint.h" | 38 #include "SkPaint.h" |
40 #include "SkPath.h" | 39 #include "SkPath.h" |
41 #include "SkSFNTHeader.h" | 40 #include "SkString.h" |
42 #include "SkStream.h" | 41 #include "SkStream.h" |
43 #include "SkString.h" | 42 #include "SkThread.h" |
44 #include "SkTypefaceCache.h" | |
45 #include "SkTypeface_mac.h" | 43 #include "SkTypeface_mac.h" |
46 #include "SkUtils.h" | 44 #include "SkUtils.h" |
| 45 #include "SkTypefaceCache.h" |
| 46 #include "SkFontMgr.h" |
47 #include "SkUtils.h" | 47 #include "SkUtils.h" |
48 | 48 |
49 #include <dlfcn.h> | 49 #include <dlfcn.h> |
50 | 50 |
51 // Set to make glyph bounding boxes visible. | 51 // Set to make glyph bounding boxes visible. |
52 #define SK_SHOW_TEXT_BLIT_COVERAGE 0 | 52 #define SK_SHOW_TEXT_BLIT_COVERAGE 0 |
53 | 53 |
54 class SkScalerContext_Mac; | 54 class SkScalerContext_Mac; |
55 | 55 |
56 // CTFontManagerCopyAvailableFontFamilyNames() is not always available, so we | 56 // CTFontManagerCopyAvailableFontFamilyNames() is not always available, so we |
(...skipping 2413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2470 } | 2470 } |
2471 return face; | 2471 return face; |
2472 } | 2472 } |
2473 }; | 2473 }; |
2474 | 2474 |
2475 /////////////////////////////////////////////////////////////////////////////// | 2475 /////////////////////////////////////////////////////////////////////////////// |
2476 | 2476 |
2477 SkFontMgr* SkFontMgr::Factory() { | 2477 SkFontMgr* SkFontMgr::Factory() { |
2478 return SkNEW(SkFontMgr_Mac); | 2478 return SkNEW(SkFontMgr_Mac); |
2479 } | 2479 } |
OLD | NEW |