Chromium Code Reviews| 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 211 friend class SkScalerContext; | 211 friend class SkScalerContext; |
| 212 static SkTypeface* GetDefaultTypeface(); | 212 static SkTypeface* GetDefaultTypeface(); |
| 213 | 213 |
| 214 virtual SkScalerContext* onCreateScalerContext(const SkDescriptor*) const = 0; | 214 virtual SkScalerContext* onCreateScalerContext(const SkDescriptor*) const = 0; |
| 215 virtual void onFilterRec(SkScalerContextRec*) const = 0; | 215 virtual void onFilterRec(SkScalerContextRec*) const = 0; |
| 216 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( | 216 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( |
| 217 SkAdvancedTypefaceMetrics::PerGlyphInfo perGlyphInfo, | 217 SkAdvancedTypefaceMetrics::PerGlyphInfo perGlyphInfo, |
| 218 const uint32_t* glyphIDs, | 218 const uint32_t* glyphIDs, |
| 219 uint32_t glyphIDsCount) const = 0; | 219 uint32_t glyphIDsCount) const = 0; |
| 220 virtual SkStream* onOpenStream(int* ttcIndex) const = 0; | 220 virtual SkStream* onOpenStream(int* ttcIndex) const = 0; |
| 221 virtual void onGetFontDescriptor(SkFontDescriptor*, bool* isLocal) const = 0 ; | |
|
bungeman-skia
2013/03/22 21:04:05
I know isLocal describes what it is usually used f
reed1
2013/03/25 12:26:27
Not so sure. I think the call should return inform
| |
| 221 | 222 |
| 222 virtual int onGetUPEM() const; | 223 virtual int onGetUPEM() const; |
| 223 | 224 |
| 224 virtual int onGetTableTags(SkFontTableTag tags[]) const; | 225 virtual int onGetTableTags(SkFontTableTag tags[]) const; |
| 225 virtual size_t onGetTableData(SkFontTableTag, size_t offset, | 226 virtual size_t onGetTableData(SkFontTableTag, size_t offset, |
| 226 size_t length, void* data) const; | 227 size_t length, void* data) const; |
| 227 virtual void onGetFontDescriptor(SkFontDescriptor*) const; | |
| 228 | 228 |
| 229 private: | 229 private: |
| 230 SkFontID fUniqueID; | 230 SkFontID fUniqueID; |
| 231 Style fStyle; | 231 Style fStyle; |
| 232 bool fIsFixedWidth; | 232 bool fIsFixedWidth; |
| 233 | 233 |
| 234 friend class SkPaint; | 234 friend class SkPaint; |
| 235 friend class SkGlyphCache; // GetDefaultTypeface | 235 friend class SkGlyphCache; // GetDefaultTypeface |
| 236 // just so deprecated fonthost can call protected methods | 236 // just so deprecated fonthost can call protected methods |
| 237 friend class SkFontHost; | 237 friend class SkFontHost; |
| 238 | 238 |
| 239 typedef SkWeakRefCnt INHERITED; | 239 typedef SkWeakRefCnt INHERITED; |
| 240 }; | 240 }; |
| 241 | 241 |
| 242 #endif | 242 #endif |
| OLD | NEW |