OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 | 8 |
9 #ifndef SkTypeface_android_DEFINED | 9 #ifndef SkTypeface_android_DEFINED |
10 #define SkTypeface_android_DEFINED | 10 #define SkTypeface_android_DEFINED |
11 | 11 |
12 #include "SkTypeface.h" | 12 #include "SkTypeface.h" |
13 | 13 |
14 #ifdef SK_BUILD_FOR_ANDROID | 14 #ifdef SK_BUILD_FOR_ANDROID |
15 | 15 |
16 /** | 16 /** |
17 * For test only. | 17 * For test only. |
18 * Load font config from given xml files, instead of those from Android system. | 18 * Load font config from given xml files, instead of those from Android system. |
19 */ | 19 */ |
20 SK_API void SkUseTestFontConfigFile(const char* mainconf, const char* fallbackco
nf, | 20 SK_API void SkUseTestFontConfigFile(const char* mainconf, const char* fallbackco
nf, |
21 const char* fontsdir); | 21 const char* fontsdir); |
22 | 22 |
23 /** | |
24 * For test only. | |
25 * Returns the information set by SkUseTestFontConfigFile. | |
26 * TODO: this should be removed once SkFontConfigInterface_android is removed, | |
27 * and then Chromium should be given a better way to set up it's test environme
nt | |
28 * than SkUseTestFontConfigFile. | |
29 */ | |
30 void SkGetTestFontConfiguration(const char** mainconf, const char** fallbackconf
, | |
31 const char** fontsdir); | |
32 | |
33 #endif // #ifdef SK_BUILD_FOR_ANDROID | 23 #endif // #ifdef SK_BUILD_FOR_ANDROID |
34 #endif // #ifndef SkTypeface_android_DEFINED | 24 #endif // #ifndef SkTypeface_android_DEFINED |
OLD | NEW |