diff options
author | Steve Kondik <shade@chemlab.org> | 2012-11-18 15:51:29 -0800 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2012-11-18 15:51:29 -0800 |
commit | a0a3a4d3f7e368311d896eaca0a22732a81d37fb (patch) | |
tree | c4590b3f4713d99a0f55be9f270231ce56c98779 /src/ports/FontHostConfiguration_android.h | |
parent | 93df05afa45a51715db60aa88cc6ea11f232b3ea (diff) | |
parent | 7cd90d4eecdba0f40a36945749d40df95d6d641b (diff) | |
download | external_skia-a0a3a4d3f7e368311d896eaca0a22732a81d37fb.zip external_skia-a0a3a4d3f7e368311d896eaca0a22732a81d37fb.tar.gz external_skia-a0a3a4d3f7e368311d896eaca0a22732a81d37fb.tar.bz2 |
Merge branch 'jb-mr1-release' of https://android.googlesource.com/platform/external/skia into mr1-staging
Change-Id: I5cf0639d6ad25f58af4d5e0e480ee063148991f8
Diffstat (limited to 'src/ports/FontHostConfiguration_android.h')
-rw-r--r-- | src/ports/FontHostConfiguration_android.h | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/ports/FontHostConfiguration_android.h b/src/ports/FontHostConfiguration_android.h index 2441f0e..6734b08 100644 --- a/src/ports/FontHostConfiguration_android.h +++ b/src/ports/FontHostConfiguration_android.h @@ -17,19 +17,33 @@ #ifndef FONTHOSTCONFIGURATION_ANDROID_H_ #define FONTHOSTCONFIGURATION_ANDROID_H_ +#include "SkTypes.h" + +#include "SkLanguage.h" +#include "SkPaint.h" #include "SkTDArray.h" +struct FontFileInfo { + FontFileInfo() : fFileName(NULL), fVariant(SkPaint::kDefault_Variant), + fLanguage() { + } + + const char* fFileName; + SkPaint::FontVariant fVariant; + SkLanguage fLanguage; +}; + /** * The FontFamily data structure is created during parsing and handed back to * Skia to fold into its representation of font families. fNames is the list of - * font names that alias to a font family. fFileNames is the list of font - * filenames for the family. Order is the priority order for the font. This is + * font names that alias to a font family. fontFileArray is the list of information + * about each file. Order is the priority order for the font. This is * used internally to determine the order in which to place fallback fonts as * they are read from the configuration files. */ struct FontFamily { - SkTDArray<const char*> fNames; - SkTDArray<const char*> fFileNames; + SkTDArray<const char*> fNames; + SkTDArray<FontFileInfo*> fFontFileArray; int order; }; @@ -45,15 +59,10 @@ void getFontFamilies(SkTDArray<FontFamily*> &fontFamilies); */ void getSystemFontFamilies(SkTDArray<FontFamily*> &fontFamilies); - /** * Parse the fallback and vendor system font configuration files and return the * results in an array of FontFamily structures. */ void getFallbackFontFamilies(SkTDArray<FontFamily*> &fallbackFonts); -#if !defined(SK_BUILD_FOR_ANDROID_NDK) - void getLocale(char* language, char* region); -#endif - #endif /* FONTHOSTCONFIGURATION_ANDROID_H_ */ |