| 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 #ifdef SK_BUILD_FOR_ANDROID | 12 #ifdef SK_BUILD_FOR_ANDROID |
| 13 | 13 |
| 14 #include "SkTypeface.h" | 14 #include "SkTypeface.h" |
| 15 | 15 |
| 16 class SkPaintOptionsAndroid; |
| 17 |
| 16 /** | 18 /** |
| 17 * Get the family name of the font in the fallback font list containing | 19 * Get the family name of the font in the fallback font list containing |
| 18 * the specified chararacter. if no font is found, returns false. | 20 * the specified character. if no font is found, returns false. |
| 19 */ | 21 */ |
| 20 SK_API bool SkGetFallbackFamilyNameForChar(SkUnichar uni, SkString* name); | 22 SK_API bool SkGetFallbackFamilyNameForChar(SkUnichar uni, SkString* name); |
| 21 | 23 |
| 22 /** | 24 /** |
| 23 * For test only. | 25 * For test only. |
| 24 * Load font config from given xml files, instead of those from Android system. | 26 * Load font config from given xml files, instead of those from Android system. |
| 25 */ | 27 */ |
| 26 SK_API void SkUseTestFontConfigFile(const char* mainconf, const char* fallbackco
nf, | 28 SK_API void SkUseTestFontConfigFile(const char* mainconf, const char* fallbackco
nf, |
| 27 const char* fontsdir); | 29 const char* fontsdir); |
| 28 | 30 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 39 * the best next logical font. e.g. If the original font was bold or serif, | 41 * the best next logical font. e.g. If the original font was bold or serif, |
| 40 * but the 2nd in the logical chain was plain, then a subsequent call to | 42 * but the 2nd in the logical chain was plain, then a subsequent call to |
| 41 * get the 3rd can still inspect the original, and try to match its | 43 * get the 3rd can still inspect the original, and try to match its |
| 42 * stylistic attributes. | 44 * stylistic attributes. |
| 43 */ | 45 */ |
| 44 SkTypeface* SkAndroidNextLogicalTypeface(SkFontID currFontID, SkFontID origFontI
D, | 46 SkTypeface* SkAndroidNextLogicalTypeface(SkFontID currFontID, SkFontID origFontI
D, |
| 45 const SkPaintOptionsAndroid& options); | 47 const SkPaintOptionsAndroid& options); |
| 46 | 48 |
| 47 #endif // #ifdef SK_BUILD_FOR_ANDROID | 49 #endif // #ifdef SK_BUILD_FOR_ANDROID |
| 48 #endif // #ifndef SkTypeface_android_DEFINED | 50 #endif // #ifndef SkTypeface_android_DEFINED |
| OLD | NEW |