| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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_DEFINED | 8 #ifndef SkFontMgr_DEFINED |
| 9 #define SkFontMgr_DEFINED | 9 #define SkFontMgr_DEFINED |
| 10 | 10 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 virtual SkTypeface* onCreateFromStream(SkStreamAsset*, int ttcIndex) const =
0; | 192 virtual SkTypeface* onCreateFromStream(SkStreamAsset*, int ttcIndex) const =
0; |
| 193 // TODO: make pure virtual. | 193 // TODO: make pure virtual. |
| 194 virtual SkTypeface* onCreateFromStream(SkStreamAsset*, const FontParameters&
) const; | 194 virtual SkTypeface* onCreateFromStream(SkStreamAsset*, const FontParameters&
) const; |
| 195 virtual SkTypeface* onCreateFromFontData(SkFontData*) const; | 195 virtual SkTypeface* onCreateFromFontData(SkFontData*) const; |
| 196 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const
= 0; | 196 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const
= 0; |
| 197 | 197 |
| 198 virtual SkTypeface* onLegacyCreateTypeface(const char familyName[], SkFontSt
yle) const = 0; | 198 virtual SkTypeface* onLegacyCreateTypeface(const char familyName[], SkFontSt
yle) const = 0; |
| 199 | 199 |
| 200 private: | 200 private: |
| 201 static SkFontMgr* Factory(); // implemented by porting layer | 201 static SkFontMgr* Factory(); // implemented by porting layer |
| 202 friend SkFontMgr* sk_fontmgr_create_default(); | |
| 203 | 202 |
| 204 typedef SkRefCnt INHERITED; | 203 typedef SkRefCnt INHERITED; |
| 205 }; | 204 }; |
| 206 | 205 |
| 207 #endif | 206 #endif |
| OLD | NEW |