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

Side by Side Diff: include/ports/SkTypeface_android.h

Issue 451093002: Use test config in SkFontMgr_android. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Move logic out to factory. Created 6 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright 2012 Google Inc. 2 * Copyright 2012 Google Inc.
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 8
9 #ifndef SkTypeface_android_DEFINED 9 #ifndef SkTypeface_android_DEFINED
10 #define SkTypeface_android_DEFINED 10 #define SkTypeface_android_DEFINED
(...skipping 21 matching lines...) Expand all
32 */ 32 */
33 SK_API bool SkGetFallbackFamilyNameForChar(SkUnichar uni, const char* lang, SkSt ring* name); 33 SK_API bool SkGetFallbackFamilyNameForChar(SkUnichar uni, const char* lang, SkSt ring* name);
34 34
35 /** 35 /**
36 * For test only. 36 * For test only.
37 * Load font config from given xml files, instead of those from Android system. 37 * Load font config from given xml files, instead of those from Android system.
38 */ 38 */
39 SK_API void SkUseTestFontConfigFile(const char* mainconf, const char* fallbackco nf, 39 SK_API void SkUseTestFontConfigFile(const char* mainconf, const char* fallbackco nf,
40 const char* fontsdir); 40 const char* fontsdir);
41 41
42 /**
43 * For test only.
44 * Returns the information set by SkUseTestFontConfigFile.
45 * TODO: this should be removed once SkFontConfigInterface_android is removed,
46 * and then Chromium should be given a better way to set up it's test environme nt
47 * than SkUseTestFontConfigFile.
48 */
49 void SkGetTestFontConfiguration(const char** mainconf, const char** fallbackconf ,
50 const char** fontsdir);
51
42 #endif // #ifdef SK_BUILD_FOR_ANDROID 52 #endif // #ifdef SK_BUILD_FOR_ANDROID
43 #endif // #ifndef SkTypeface_android_DEFINED 53 #endif // #ifndef SkTypeface_android_DEFINED
OLDNEW
« no previous file with comments | « no previous file | src/ports/SkFontConfigInterface_android.cpp » ('j') | src/ports/SkFontMgr_android.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698