| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 The Android Open Source Project | 2 * Copyright 2011 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SKFONTCONFIGPARSER_ANDROID_H_ | 8 #ifndef SKFONTCONFIGPARSER_ANDROID_H_ |
| 9 #define SKFONTCONFIGPARSER_ANDROID_H_ | 9 #define SKFONTCONFIGPARSER_ANDROID_H_ |
| 10 | 10 |
| 11 #include "SkTypes.h" | 11 #include "SkTypes.h" |
| 12 | 12 |
| 13 #include "SkPaintOptionsAndroid.h" | 13 #include "SkPaintOptionsAndroid.h" |
| 14 #include "SkString.h" |
| 14 #include "SkTDArray.h" | 15 #include "SkTDArray.h" |
| 15 | 16 |
| 16 struct FontFileInfo { | 17 struct FontFileInfo { |
| 17 FontFileInfo() : fFileName(NULL) {} | 18 FontFileInfo() : fFileName(NULL) {} |
| 18 | 19 |
| 19 const char* fFileName; | 20 const char* fFileName; |
| 20 SkPaintOptionsAndroid fPaintOptions; | 21 SkPaintOptionsAndroid fPaintOptions; |
| 21 }; | 22 }; |
| 22 | 23 |
| 23 /** | 24 /** |
| (...skipping 22 matching lines...) Expand all Loading... |
| 46 void GetFontFamilies(SkTDArray<FontFamily*> &fontFamilies); | 47 void GetFontFamilies(SkTDArray<FontFamily*> &fontFamilies); |
| 47 | 48 |
| 48 /** | 49 /** |
| 49 * Parses all test font configuration files and returns the results in an | 50 * Parses all test font configuration files and returns the results in an |
| 50 * array of FontFamily structures. | 51 * array of FontFamily structures. |
| 51 */ | 52 */ |
| 52 void GetTestFontFamilies(SkTDArray<FontFamily*> &fontFamilies, | 53 void GetTestFontFamilies(SkTDArray<FontFamily*> &fontFamilies, |
| 53 const char* testMainConfigFile, | 54 const char* testMainConfigFile, |
| 54 const char* testFallbackConfigFile); | 55 const char* testFallbackConfigFile); |
| 55 | 56 |
| 56 struct AndroidLocale { | 57 SkString GetLocale(); |
| 57 char language[3]; | |
| 58 char region[3]; | |
| 59 }; | |
| 60 | |
| 61 void GetLocale(AndroidLocale &locale); | |
| 62 | 58 |
| 63 } // SkFontConfigParser namespace | 59 } // SkFontConfigParser namespace |
| 64 | 60 |
| 65 #endif /* SKFONTCONFIGPARSER_ANDROID_H_ */ | 61 #endif /* SKFONTCONFIGPARSER_ANDROID_H_ */ |
| OLD | NEW |