Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 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 #ifndef SkFontMgr_android_DEFINED | 8 #ifndef SkFontMgr_android_DEFINED |
| 9 #define SkFontMgr_android_DEFINED | 9 #define SkFontMgr_android_DEFINED |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 32 /** Base path to resolve relative font file names. If a directory, should en d with '/'. */ | 32 /** Base path to resolve relative font file names. If a directory, should en d with '/'. */ |
| 33 const char* fBasePath; | 33 const char* fBasePath; |
| 34 | 34 |
| 35 /** Optional custom configuration file to use. */ | 35 /** Optional custom configuration file to use. */ |
| 36 const char* fFontsXml; | 36 const char* fFontsXml; |
| 37 | 37 |
| 38 /** Optional custom configuration file for fonts which provide fallback. | 38 /** Optional custom configuration file for fonts which provide fallback. |
| 39 * In the new style (version > 21) fontsXml format is used, this should be NULL. | 39 * In the new style (version > 21) fontsXml format is used, this should be NULL. |
| 40 */ | 40 */ |
| 41 const char* fFallbackFontsXml; | 41 const char* fFallbackFontsXml; |
| 42 | |
| 43 /** Optional custom flag. If set to true the SkFontMgr will open and cache f ile streams | |
| 44 * for each font file on initialization. | |
| 45 */ | |
| 46 bool fCacheFontFiles; | |
|
bungeman-skia
2016/02/08 22:11:56
I'm not sure I like the naming of this. Perhaps so
Khushal
2016/02/09 00:53:39
Done.
| |
| 42 }; | 47 }; |
| 43 | 48 |
| 44 /** Create a font manager for Android. If 'custom' is NULL, use only system font s. */ | 49 /** Create a font manager for Android. If 'custom' is NULL, use only system font s. */ |
| 45 SK_API SkFontMgr* SkFontMgr_New_Android(const SkFontMgr_Android_CustomFonts* cus tom); | 50 SK_API SkFontMgr* SkFontMgr_New_Android(const SkFontMgr_Android_CustomFonts* cus tom); |
| 46 | 51 |
| 47 #endif // SkFontMgr_android_DEFINED | 52 #endif // SkFontMgr_android_DEFINED |
| OLD | NEW |