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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 virtual SkFontStyleSet* onMatchFamily(const char familyName[]) = 0; | 92 virtual SkFontStyleSet* onMatchFamily(const char familyName[]) = 0; |
93 | 93 |
94 virtual SkTypeface* onMatchFamilyStyle(const char familyName[], | 94 virtual SkTypeface* onMatchFamilyStyle(const char familyName[], |
95 const SkFontStyle&) = 0; | 95 const SkFontStyle&) = 0; |
96 virtual SkTypeface* onMatchFaceStyle(const SkTypeface*, | 96 virtual SkTypeface* onMatchFaceStyle(const SkTypeface*, |
97 const SkFontStyle&) = 0; | 97 const SkFontStyle&) = 0; |
98 | 98 |
99 virtual SkTypeface* onCreateFromData(SkData*, int ttcIndex) = 0; | 99 virtual SkTypeface* onCreateFromData(SkData*, int ttcIndex) = 0; |
100 virtual SkTypeface* onCreateFromStream(SkStream*, int ttcIndex) = 0; | 100 virtual SkTypeface* onCreateFromStream(SkStream*, int ttcIndex) = 0; |
101 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) = 0; | 101 virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) = 0; |
102 | 102 virtual SkTypeface* onLegacyCreateTypeface(const char familyName[], unsigned
styleBits) = 0; |
103 // TODO: make this pure-virtual once all ports know about it | |
104 virtual SkTypeface* onLegacyCreateTypeface(const char familyName[], | |
105 unsigned styleBits); | |
106 private: | 103 private: |
107 static SkFontMgr* Factory(); // implemented by porting layer | 104 static SkFontMgr* Factory(); // implemented by porting layer |
108 | 105 |
109 typedef SkRefCnt INHERITED; | 106 typedef SkRefCnt INHERITED; |
110 }; | 107 }; |
111 | 108 |
112 #endif | 109 #endif |
OLD | NEW |