skia2/include/ports
djsollen@google.com ff029606bd Add CreateFallbackForScript to SkTypeface for Android.
WebKit uses HarfBuzz directly to do Complex Text Layout, so it needs to get the
proper SkTypeface to pass it to HarfBuzz. However, on Android, fallback scripts
have no name, and we can only get them by file name each time (CreateFromFile).
This actually breaks the semantics of SkTypeface, which states 'The ID should
be unique for the underlying font file/data, not unique per typeface instance.'

And add 2 helper function to convert between FallbackScripts enum and font file
name. These are useful for WebKit's FontCache, which needs string as key.

https://codereview.appspot.com/5797066/

git-svn-id: http://skia.googlecode.com/svn/trunk@3403 2bbb7eff-a529-9590-31e7-b0007b416f81
2012-03-15 15:49:51 +00:00
..
SkHarfBuzzFont.h Manually update copyright notices in files that defied the automated process 2011-07-28 14:24:55 +00:00
SkStream_Win.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkTypeface_android.h Add CreateFallbackForScript to SkTypeface for Android. 2012-03-15 15:49:51 +00:00
SkTypeface_mac.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00
SkTypeface_win.h Automatic update of all copyright notices to reflect new license terms. 2011-07-28 14:26:00 +00:00