| 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 "SkString.h" |
| 15 #include "SkTDArray.h" | 15 #include "SkTDArray.h" |
| 16 | 16 |
| 17 struct FontFileInfo { | 17 struct FontFileInfo { |
| 18 FontFileInfo() : fIndex(0) { } | |
| 19 | |
| 20 SkString fFileName; | 18 SkString fFileName; |
| 21 int fIndex; | |
| 22 SkPaintOptionsAndroid fPaintOptions; | 19 SkPaintOptionsAndroid fPaintOptions; |
| 23 }; | 20 }; |
| 24 | 21 |
| 25 /** | 22 /** |
| 26 * The FontFamily data structure is created during parsing and handed back to | 23 * The FontFamily data structure is created during parsing and handed back to |
| 27 * Skia to fold into its representation of font families. fNames is the list of | 24 * Skia to fold into its representation of font families. fNames is the list of |
| 28 * font names that alias to a font family. fontFileArray is the list of informat
ion | 25 * font names that alias to a font family. fontFileArray is the list of informat
ion |
| 29 * about each file. Order is the priority order for the font. This is | 26 * about each file. Order is the priority order for the font. This is |
| 30 * used internally to determine the order in which to place fallback fonts as | 27 * used internally to determine the order in which to place fallback fonts as |
| 31 * they are read from the configuration files. | 28 * they are read from the configuration files. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 53 */ | 50 */ |
| 54 void GetTestFontFamilies(SkTDArray<FontFamily*> &fontFamilies, | 51 void GetTestFontFamilies(SkTDArray<FontFamily*> &fontFamilies, |
| 55 const char* testMainConfigFile, | 52 const char* testMainConfigFile, |
| 56 const char* testFallbackConfigFile); | 53 const char* testFallbackConfigFile); |
| 57 | 54 |
| 58 SkString GetLocale(); | 55 SkString GetLocale(); |
| 59 | 56 |
| 60 } // SkFontConfigParser namespace | 57 } // SkFontConfigParser namespace |
| 61 | 58 |
| 62 #endif /* SKFONTCONFIGPARSER_ANDROID_H_ */ | 59 #endif /* SKFONTCONFIGPARSER_ANDROID_H_ */ |
| OLD | NEW |