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