Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: src/ports/SkFontConfigParser_android.h

Issue 17691002: Ensure we use the current locale when looking up fallback fonts per character (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: remove mutex Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ports/SkFontConfigInterface_android.cpp ('k') | src/ports/SkFontConfigParser_android.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_ */
OLDNEW
« no previous file with comments | « src/ports/SkFontConfigInterface_android.cpp ('k') | src/ports/SkFontConfigParser_android.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698