Index: include/ports/SkTypeface_android.h |
diff --git a/include/ports/SkTypeface_android.h b/include/ports/SkTypeface_android.h |
index 655670fb6b4625718c24f2df931cc7abba1cfc87..1ee923c4e66b7f62073e18b2ed1d60c8d3330755 100644 |
--- a/include/ports/SkTypeface_android.h |
+++ b/include/ports/SkTypeface_android.h |
@@ -17,11 +17,33 @@ class SkPaintOptionsAndroid; |
/** |
* Get the family name of the font in the fallback font list containing |
- * the specified character. if no font is found, returns false. |
+ * the specified character using the system's default language. This function |
+ * also assumes the only families with the elegant or default variants will be |
+ * returned. |
+ * |
+ * @param uni The unicode character to use for the lookup. |
+ * @param name The family name of the font file containing the unicode character |
+ * in the default language |
+ * @return true if a font is found and false otherwise |
*/ |
SK_API bool SkGetFallbackFamilyNameForChar(SkUnichar uni, SkString* name); |
/** |
+ * Get the family name of the font in the fallback font list containing |
+ * the specified character taking into account the provided language. This |
+ * function also assumes the only families with the elegant or default variants |
+ * will be returned. |
+ * |
+ * @param uni The unicode character to use for the lookup. |
+ * @param lang The null terminated string representing the BCP 47 language |
+ * identifier for the preferred language |
+ * @param name The family name of the font file containing the unicode character |
+ * in the preferred language |
+ * @return true if a font is found and false otherwise |
+ */ |
+SK_API bool SkGetFallbackFamilyNameForChar(SkUnichar uni, const char* lang, SkString* name); |
+ |
+/** |
* For test only. |
* Load font config from given xml files, instead of those from Android system. |
*/ |