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 |
(...skipping 21 matching lines...) Expand all Loading... |
32 */ | 32 */ |
33 SK_API bool SkGetFallbackFamilyNameForChar(SkUnichar uni, const char* lang, SkSt
ring* name); | 33 SK_API bool SkGetFallbackFamilyNameForChar(SkUnichar uni, const char* lang, SkSt
ring* name); |
34 | 34 |
35 /** | 35 /** |
36 * For test only. | 36 * For test only. |
37 * Load font config from given xml files, instead of those from Android system. | 37 * Load font config from given xml files, instead of those from Android system. |
38 */ | 38 */ |
39 SK_API void SkUseTestFontConfigFile(const char* mainconf, const char* fallbackco
nf, | 39 SK_API void SkUseTestFontConfigFile(const char* mainconf, const char* fallbackco
nf, |
40 const char* fontsdir); | 40 const char* fontsdir); |
41 | 41 |
| 42 /** |
| 43 * For test only. |
| 44 * Returns the information set by SkUseTestFontConfigFile. |
| 45 * TODO: this should be removed once SkFontConfigInterface_android is removed, |
| 46 * and then Chromium should be given a better way to set up it's test environme
nt |
| 47 * than SkUseTestFontConfigFile. |
| 48 */ |
| 49 void SkGetTestFontConfiguration(const char** mainconf, const char** fallbackconf
, |
| 50 const char** fontsdir); |
| 51 |
42 #endif // #ifdef SK_BUILD_FOR_ANDROID | 52 #endif // #ifdef SK_BUILD_FOR_ANDROID |
43 #endif // #ifndef SkTypeface_android_DEFINED | 53 #endif // #ifndef SkTypeface_android_DEFINED |
OLD | NEW |