Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Unified Diff: include/ports/SkTypeface_android.h

Issue 24364008: Update PDF backend to support fallback fonts on Android. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/pdf/SkPDFDevice.cpp » ('j') | src/pdf/SkPDFDevice.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/ports/SkTypeface_android.h
diff --git a/include/ports/SkTypeface_android.h b/include/ports/SkTypeface_android.h
index 1ee923c4e66b7f62073e18b2ed1d60c8d3330755..8d3a1b10864daf23fb58392320f8e4320d0ffb39 100644
--- a/include/ports/SkTypeface_android.h
+++ b/include/ports/SkTypeface_android.h
@@ -68,6 +68,22 @@ 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. However,
+ * if returned typeface is not NULL it is assumed to be globally cached so the
+ * caller need not ref it.
+ *
+ * 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
scroggo 2013/10/01 21:00:14 resolving*
+ * inclusive while the upper bound is exclusive.
+ */
+SkTypeface* SkGetTypefaceForGlyphID(uint16_t glyphID, const SkTypeface* origTypeface,
+ const SkPaintOptionsAndroid& options,
+ int* lowerBounds, int* upperBounds);
scroggo 2013/10/01 21:00:14 If these are optional, should they have default va
+
#endif // #ifdef SK_BUILD_FOR_ANDROID
#ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
« no previous file with comments | « no previous file | src/pdf/SkPDFDevice.cpp » ('j') | src/pdf/SkPDFDevice.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698