OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 #include "SkFontMgr.h" | |
reed1
2015/06/26 14:00:13
This idea of
special skia headers
"system" head
| |
9 | |
10 #include <fontconfig/fontconfig.h> | |
11 #include <string.h> | |
12 | |
8 #include "SkDataTable.h" | 13 #include "SkDataTable.h" |
14 #include "SkFixed.h" | |
9 #include "SkFontDescriptor.h" | 15 #include "SkFontDescriptor.h" |
10 #include "SkFontHost_FreeType_common.h" | 16 #include "SkFontHost_FreeType_common.h" |
11 #include "SkFontMgr.h" | |
12 #include "SkFontStyle.h" | 17 #include "SkFontStyle.h" |
13 #include "SkMath.h" | 18 #include "SkMath.h" |
19 #include "SkMutex.h" | |
20 #include "SkOSFile.h" | |
21 #include "SkRefCnt.h" | |
22 #include "SkStream.h" | |
14 #include "SkString.h" | 23 #include "SkString.h" |
15 #include "SkStream.h" | |
16 #include "SkTDArray.h" | 24 #include "SkTDArray.h" |
17 #include "SkThread.h" | 25 #include "SkTemplates.h" |
26 #include "SkTypeface.h" | |
18 #include "SkTypefaceCache.h" | 27 #include "SkTypefaceCache.h" |
19 #include "SkOSFile.h" | 28 #include "SkTypes.h" |
20 | 29 |
21 #include <fontconfig/fontconfig.h> | 30 class SkData; |
22 | 31 |
23 // FC_POSTSCRIPT_NAME was added with b561ff20 which ended up in 2.10.92 | 32 // FC_POSTSCRIPT_NAME was added with b561ff20 which ended up in 2.10.92 |
24 // Ubuntu 12.04 is on 2.8.0, 13.10 is on 2.10.93 | 33 // Ubuntu 12.04 is on 2.8.0, 13.10 is on 2.10.93 |
25 // Debian 7 is on 2.9.0, 8 is on 2.11 | 34 // Debian 7 is on 2.9.0, 8 is on 2.11 |
26 // OpenSUSE 12.2 is on 2.9.0, 12.3 is on 2.10.2, 13.1 2.11.0 | 35 // OpenSUSE 12.2 is on 2.9.0, 12.3 is on 2.10.2, 13.1 2.11.0 |
27 // Fedora 19 is on 2.10.93 | 36 // Fedora 19 is on 2.10.93 |
28 #ifndef FC_POSTSCRIPT_NAME | 37 #ifndef FC_POSTSCRIPT_NAME |
29 # define FC_POSTSCRIPT_NAME "postscriptname" | 38 # define FC_POSTSCRIPT_NAME "postscriptname" |
30 #endif | 39 #endif |
31 | 40 |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
865 return typeface.detach(); | 874 return typeface.detach(); |
866 } | 875 } |
867 | 876 |
868 return this->matchFamilyStyle(NULL, style); | 877 return this->matchFamilyStyle(NULL, style); |
869 } | 878 } |
870 }; | 879 }; |
871 | 880 |
872 SK_API SkFontMgr* SkFontMgr_New_FontConfig(FcConfig* fc) { | 881 SK_API SkFontMgr* SkFontMgr_New_FontConfig(FcConfig* fc) { |
873 return new SkFontMgr_fontconfig(fc); | 882 return new SkFontMgr_fontconfig(fc); |
874 } | 883 } |
OLD | NEW |