OLD | NEW |
---|---|
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkTypeface_DEFINED | 10 #ifndef SkTypeface_DEFINED |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
201 */ | 201 */ |
202 SkTypeface(Style style, SkFontID uniqueID, bool isFixedWidth = false); | 202 SkTypeface(Style style, SkFontID uniqueID, bool isFixedWidth = false); |
203 virtual ~SkTypeface(); | 203 virtual ~SkTypeface(); |
204 | 204 |
205 friend class SkScalerContext; | 205 friend class SkScalerContext; |
206 static SkTypeface* GetDefaultTypeface(); | 206 static SkTypeface* GetDefaultTypeface(); |
207 | 207 |
208 virtual SkScalerContext* onCreateScalerContext(const SkDescriptor*) const = 0; | 208 virtual SkScalerContext* onCreateScalerContext(const SkDescriptor*) const = 0; |
209 virtual void onFilterRec(SkScalerContextRec*) const = 0; | 209 virtual void onFilterRec(SkScalerContextRec*) const = 0; |
210 | 210 |
211 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( | |
bungeman-skia
2013/03/20 17:56:26
public??? ick.
It seems this is currently being u
| |
212 SkAdvancedTypefaceMetrics::PerGlyphInfo perGlyphInfo, | |
213 const uint32_t* glyphIDs, | |
214 uint32_t glyphIDsCount) const = 0; | |
215 | |
211 virtual int onGetUPEM() const; | 216 virtual int onGetUPEM() const; |
212 virtual int onGetTableTags(SkFontTableTag tags[]) const; | 217 virtual int onGetTableTags(SkFontTableTag tags[]) const; |
213 virtual size_t onGetTableData(SkFontTableTag, size_t offset, | 218 virtual size_t onGetTableData(SkFontTableTag, size_t offset, |
214 size_t length, void* data) const; | 219 size_t length, void* data) const; |
215 virtual void onGetFontDescriptor(SkFontDescriptor*) const; | 220 virtual void onGetFontDescriptor(SkFontDescriptor*) const; |
216 | 221 |
217 private: | 222 private: |
218 SkFontID fUniqueID; | 223 SkFontID fUniqueID; |
219 Style fStyle; | 224 Style fStyle; |
220 bool fIsFixedWidth; | 225 bool fIsFixedWidth; |
221 | 226 |
222 friend class SkPaint; | 227 friend class SkPaint; |
223 friend class SkGlyphCache; // GetDefaultTypeface | 228 friend class SkGlyphCache; // GetDefaultTypeface |
224 // just so deprecated fonthost can call protected methods | 229 // just so deprecated fonthost can call protected methods |
225 friend class SkFontHost; | 230 friend class SkFontHost; |
226 | 231 |
227 typedef SkWeakRefCnt INHERITED; | 232 typedef SkWeakRefCnt INHERITED; |
228 }; | 233 }; |
229 | 234 |
230 #endif | 235 #endif |
OLD | NEW |