Chromium Code Reviews| Index: include/ports/SkTypeface_android.h |
| diff --git a/include/ports/SkTypeface_android.h b/include/ports/SkTypeface_android.h |
| index 1ee923c4e66b7f62073e18b2ed1d60c8d3330755..d5e4d26ea71ea691f79daf99aee4426734a54741 100644 |
| --- a/include/ports/SkTypeface_android.h |
| +++ b/include/ports/SkTypeface_android.h |
| @@ -68,6 +68,21 @@ SK_API void SkUseTestFontConfigFile(const char* mainconf, const char* fallbackco |
| SkTypeface* SkAndroidNextLogicalTypeface(SkFontID currFontID, SkFontID origFontID, |
| const SkPaintOptionsAndroid& options); |
| +/** |
| + * Given a glyphID (built using fallback font chaining) and its origin typeface |
| + * return the actual typeface within the fallback chain that this glyphID |
| + * resolves to. If no suitable typeface is found then NULL is returned. |
| + * |
| + * Optionally, if lower/upper bound params are provided and the returned |
| + * typeface is not NULL, then these params are populated with the range of |
| + * glyphIDs that this typeface is capable of resovling. The lower bound is |
| + * inclusive while the upper bound is exclusive. |
| + */ |
| +SkTypeface* SkGetTypefaceForGlyphID(uint16_t glyphID, const SkTypeface* origTypeface, |
|
reed1
2013/09/24 20:10:19
Does this call affect the refcnt() of the returned
|
| + const SkPaintOptionsAndroid& options, |
| + int* lowerBounds, int* upperBounds); |
| + |
| + |
| #endif // #ifdef SK_BUILD_FOR_ANDROID |
| #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK |