OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 SkTypeface_win_dw_DEFINED | 8 #ifndef SkTypeface_win_dw_DEFINED |
9 #define SkTypeface_win_dw_DEFINED | 9 #define SkTypeface_win_dw_DEFINED |
10 | 10 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 HRV(fFactory->UnregisterFontFileLoader(fDWriteFontFileLoader.get()))
; | 92 HRV(fFactory->UnregisterFontFileLoader(fDWriteFontFileLoader.get()))
; |
93 } | 93 } |
94 | 94 |
95 //SkTypefaceCache::Remove(this); | 95 //SkTypefaceCache::Remove(this); |
96 INHERITED::weak_dispose(); | 96 INHERITED::weak_dispose(); |
97 } | 97 } |
98 | 98 |
99 SkStreamAsset* onOpenStream(int* ttcIndex) const override; | 99 SkStreamAsset* onOpenStream(int* ttcIndex) const override; |
100 SkScalerContext* onCreateScalerContext(const SkDescriptor*) const override; | 100 SkScalerContext* onCreateScalerContext(const SkDescriptor*) const override; |
101 void onFilterRec(SkScalerContextRec*) const override; | 101 void onFilterRec(SkScalerContextRec*) const override; |
102 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( | 102 SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( |
103 SkAdvancedTypefaceMetrics::PerGlyphInfo, | 103 PerGlyphInfo, const uint32_t*, uint32_t) const o
verride; |
104 const uint32_t*, uint32_t) const override; | |
105 void onGetFontDescriptor(SkFontDescriptor*, bool*) const override; | 104 void onGetFontDescriptor(SkFontDescriptor*, bool*) const override; |
106 virtual int onCharsToGlyphs(const void* chars, Encoding encoding, | 105 virtual int onCharsToGlyphs(const void* chars, Encoding encoding, |
107 uint16_t glyphs[], int glyphCount) const overrid
e; | 106 uint16_t glyphs[], int glyphCount) const overrid
e; |
108 int onCountGlyphs() const override; | 107 int onCountGlyphs() const override; |
109 int onGetUPEM() const override; | 108 int onGetUPEM() const override; |
110 void onGetFamilyName(SkString* familyName) const override; | 109 void onGetFamilyName(SkString* familyName) const override; |
111 SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const override; | 110 SkTypeface::LocalizedStrings* onCreateFamilyNameIterator() const override; |
112 int onGetTableTags(SkFontTableTag tags[]) const override; | 111 int onGetTableTags(SkFontTableTag tags[]) const override; |
113 virtual size_t onGetTableData(SkFontTableTag, size_t offset, | 112 virtual size_t onGetTableData(SkFontTableTag, size_t offset, |
114 size_t length, void* data) const override; | 113 size_t length, void* data) const override; |
115 | 114 |
116 private: | 115 private: |
117 typedef SkTypeface INHERITED; | 116 typedef SkTypeface INHERITED; |
118 }; | 117 }; |
119 | 118 |
120 #endif | 119 #endif |
OLD | NEW |