| 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 |
| 13 |
| 12 #include "SkTypeface.h" | 14 #include "SkTypeface.h" |
| 13 | 15 |
| 14 /** | 16 /** |
| 15 * Get the family name of the font in the fallback font list containing | 17 * Get the family name of the font in the fallback font list containing |
| 16 * the specified chararacter. if no font is found, returns false. | 18 * the specified chararacter. if no font is found, returns false. |
| 17 */ | 19 */ |
| 18 SK_API bool SkGetFallbackFamilyNameForChar(SkUnichar uni, SkString* name); | 20 SK_API bool SkGetFallbackFamilyNameForChar(SkUnichar uni, SkString* name); |
| 19 | 21 |
| 20 /** | 22 /** |
| 21 * For test only. | 23 * For test only. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 32 * on. This process must be finite, and when the fonthost sees a | 34 * on. This process must be finite, and when the fonthost sees a |
| 33 * font with no logical successor, it must return NULL. | 35 * font with no logical successor, it must return NULL. |
| 34 * | 36 * |
| 35 * The original fontID is also provided. This is the initial font that was | 37 * The original fontID is also provided. This is the initial font that was |
| 36 * stored in the typeface of the caller. It is provided as an aid to choose | 38 * stored in the typeface of the caller. It is provided as an aid to choose |
| 37 * the best next logical font. e.g. If the original font was bold or serif, | 39 * the best next logical font. e.g. If the original font was bold or serif, |
| 38 * but the 2nd in the logical chain was plain, then a subsequent call to | 40 * but the 2nd in the logical chain was plain, then a subsequent call to |
| 39 * get the 3rd can still inspect the original, and try to match its | 41 * get the 3rd can still inspect the original, and try to match its |
| 40 * stylistic attributes. | 42 * stylistic attributes. |
| 41 */ | 43 */ |
| 42 SkTypeface* SkAndroidNextLogicalTypeface(SkFontID currFontID, SkFontID origFontI
D); | 44 SkTypeface* SkAndroidNextLogicalTypeface(SkFontID currFontID, SkFontID origFontI
D, |
| 45 const SkPaintOptionsAndroid& options); |
| 43 | 46 |
| 44 #endif | 47 #endif // #ifdef SK_BUILD_FOR_ANDROID |
| 48 #endif // #ifndef SkTypeface_android_DEFINED |
| OLD | NEW |