diff options
author | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-01 12:52:26 +0000 |
---|---|---|
committer | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-06-01 12:52:26 +0000 |
commit | 15eeca00684b4d5baad8e47c5b2f77404b978cb0 (patch) | |
tree | 37edef84a22e13ba74a697c87987ebc252f4eb03 /include/ports | |
parent | 3b700f6929e093cb14cc0e4ef569e6f697c5a816 (diff) |
Update the implementation of SkTypeface_android.h functions.
This CL removes the hardcoded mappings of FallbackScripts to
a particular font file and replaces it with a dynamic mechanism
that takes a style and representative character code for a given
FallbackScript class and returns the most appropriate SkTypeface
that contains that character code.
Review URL: https://codereview.appspot.com/6197074
git-svn-id: http://skia.googlecode.com/svn/trunk@4111 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/ports')
-rw-r--r-- | include/ports/SkTypeface_android.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/include/ports/SkTypeface_android.h b/include/ports/SkTypeface_android.h index 72bb9b6adb..3471a94c5b 100644 --- a/include/ports/SkTypeface_android.h +++ b/include/ports/SkTypeface_android.h @@ -13,15 +13,19 @@ enum FallbackScripts { kArabic_FallbackScript, + kArmenian_FallbackScript, + kBengali_FallbackScript, + kDevanagari_FallbackScript, kEthiopic_FallbackScript, + kGeorgian_FallbackScript, kHebrewRegular_FallbackScript, kHebrewBold_FallbackScript, + kKannada_FallbackScript, + kMalayalam_FallbackScript, + kTamilRegular_FallbackScript, + kTamilBold_FallbackScript, kThai_FallbackScript, - kArmenian_FallbackScript, - kGeorgian_FallbackScript, - kDevanagari_FallbackScript, - kBengali_FallbackScript, - kTamil_FallbackScript, + kTelugu_FallbackScript, kFallbackScriptNumber }; |