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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 const SkFontStyle&) const = 0; | 124 const SkFontStyle&) const = 0; |
125 | 125 |
126 virtual SkTypeface* onCreateFromData(SkData*, int ttcIndex) const = 0; | 126 virtual SkTypeface* onCreateFromData(SkData*, int ttcIndex) const = 0; |
127 virtual SkTypeface* onCreateFromStream(SkStream*, int ttcIndex) const = 0; | 127 virtual SkTypeface* onCreateFromStream(SkStream*, int ttcIndex) const = 0; |
128 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const
= 0; | 128 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const
= 0; |
129 | 129 |
130 virtual SkTypeface* onLegacyCreateTypeface(const char familyName[], | 130 virtual SkTypeface* onLegacyCreateTypeface(const char familyName[], |
131 unsigned styleBits) const = 0; | 131 unsigned styleBits) const = 0; |
132 private: | 132 private: |
133 static SkFontMgr* Factory(); // implemented by porting layer | 133 static SkFontMgr* Factory(); // implemented by porting layer |
134 friend void set_up_default(SkFontMgr** singleton); | 134 static SkFontMgr* CreateDefault(); |
135 | 135 |
136 typedef SkRefCnt INHERITED; | 136 typedef SkRefCnt INHERITED; |
137 }; | 137 }; |
138 | 138 |
139 #endif | 139 #endif |
OLD | NEW |