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

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

Issue 887113002: Add factory for Android font manager. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove no longer wanted function. Created 5 years, 10 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
« no previous file with comments | « include/ports/SkFontMgr_android.h ('k') | src/ports/SkFontConfigParser_android.h » ('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 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
11 11
12 #include "SkTypeface.h" 12 #include "SkTypeface.h"
13 13
14 #ifdef SK_BUILD_FOR_ANDROID 14 #ifdef SK_BUILD_FOR_ANDROID
15 15
16 /** 16 /**
17 * For test only. 17 * For test only.
18 * Load font config from given xml files, instead of those from Android system. 18 * Load font config from given xml files, instead of those from Android system.
19 */ 19 */
20 SK_API void SkUseTestFontConfigFile(const char* mainconf, const char* fallbackco nf, 20 SK_API void SkUseTestFontConfigFile(const char* mainconf, const char* fallbackco nf,
21 const char* fontsdir); 21 const char* fontsdir);
22 22
23 /**
24 * For test only.
25 * Returns the information set by SkUseTestFontConfigFile.
26 * TODO: this should be removed once SkFontConfigInterface_android is removed,
27 * and then Chromium should be given a better way to set up it's test environme nt
28 * than SkUseTestFontConfigFile.
29 */
30 void SkGetTestFontConfiguration(const char** mainconf, const char** fallbackconf ,
31 const char** fontsdir);
32
33 #endif // #ifdef SK_BUILD_FOR_ANDROID 23 #endif // #ifdef SK_BUILD_FOR_ANDROID
34 #endif // #ifndef SkTypeface_android_DEFINED 24 #endif // #ifndef SkTypeface_android_DEFINED
OLDNEW
« no previous file with comments | « include/ports/SkFontMgr_android.h ('k') | src/ports/SkFontConfigParser_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698