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

Side by Side Diff: include/ports/SkFontMgr_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 | « no previous file | include/ports/SkTypeface_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
(Empty)
1 /*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkFontMgr_android_DEFINED
9 #define SkFontMgr_android_DEFINED
10
11 #include "SkTypes.h"
12
13 class SkFontMgr;
14
15 struct SkFontMgr_Android_CustomFonts {
16 /** When specifying custom fonts, indicates how to use system fonts. */
17 enum SystemFontUse {
18 kOnlyCustom, /** Use only custom fonts. NDK compliant. */
19 kPreferCustom, /** Use custom fonts before system fonts. */
20 kPreferSystem /** Use system fonts before custom fonts. */
21 };
22 /** Whether or not to use system fonts. */
23 SystemFontUse fSystemFontUse;
24
25 /** Base path to resolve relative font file names. If a directory, should en d with '/'. */
26 const char* fBasePath;
27
28 /** Optional custom configuration file to use. */
29 const char* fFontsXml;
30
31 /** Optional custom configuration file for fonts which provide fallback.
32 * In the new style (version > 21) fontsXml format is used, this should be NULL.
33 */
34 const char* fFallbackFontsXml;
35 };
36
37 /** Create a font manager for Android. If 'custom' is NULL, use only system font s. */
38 SK_API SkFontMgr* SkFontMgr_New_Android(const SkFontMgr_Android_CustomFonts* cus tom);
39
40 #endif // SkFontMgr_android_DEFINED
OLDNEW
« no previous file with comments | « no previous file | include/ports/SkTypeface_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698