OLD | NEW |
---|---|
(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_custom_DEFINED | |
9 #define SkFontMgr_custom_DEFINED | |
10 | |
11 #include "SkTypes.h" | |
12 | |
13 class SkFontMgr; | |
14 | |
15 /** Create a custom font manager which scans a given directory for font files. * / | |
16 SK_API SkFontMgr* SkFontMgr_New_Custom_Directory(const char* dir); | |
17 | |
18 struct SkEmbeddedResource { const uint8_t* data; size_t size; }; | |
reed1
2015/06/15 15:48:07
This struct stuff seems funny. If it is supposed t
bungeman-skia
2015/06/15 16:15:43
No, the entire point is to avoid having a file sys
| |
19 struct SkEmbeddedResourceHeader { const SkEmbeddedResource* entries; int count; }; | |
20 /** Create a custom font manager which reads font files from embedded data. */ | |
21 SK_API SkFontMgr* SkFontMgr_New_Custom_Embedded(const SkEmbeddedResourceHeader* header); | |
22 | |
23 #endif // SkFontMgr_custom_DEFINED | |
OLD | NEW |