OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2006-2012 The Android Open Source Project | 2 * Copyright 2006-2012 The Android Open Source Project |
3 * Copyright 2012 Mozilla Foundation | 3 * Copyright 2012 Mozilla Foundation |
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 #ifndef SKFONTHOST_FREETYPE_COMMON_H_ | 9 #ifndef SKFONTHOST_FREETYPE_COMMON_H_ |
10 #define SKFONTHOST_FREETYPE_COMMON_H_ | 10 #define SKFONTHOST_FREETYPE_COMMON_H_ |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 protected: | 55 protected: |
56 SkTypeface_FreeType(const SkFontStyle& style, SkFontID uniqueID, bool isFixe
dPitch) | 56 SkTypeface_FreeType(const SkFontStyle& style, SkFontID uniqueID, bool isFixe
dPitch) |
57 : INHERITED(style, uniqueID, isFixedPitch) | 57 : INHERITED(style, uniqueID, isFixedPitch) |
58 , fGlyphCount(-1) | 58 , fGlyphCount(-1) |
59 {} | 59 {} |
60 | 60 |
61 virtual SkScalerContext* onCreateScalerContext( | 61 virtual SkScalerContext* onCreateScalerContext( |
62 const SkDescriptor*) const override; | 62 const SkDescriptor*) const override; |
63 void onFilterRec(SkScalerContextRec*) const override; | 63 void onFilterRec(SkScalerContextRec*) const override; |
64 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( | 64 SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( |
65 SkAdvancedTypefaceMetrics::PerGlyphInfo, | 65 PerGlyphInfo, const uint32_t*, uint32_t) const override; |
66 const uint32_t*, uint32_t) const override; | |
67 int onGetUPEM() const override; | 66 int onGetUPEM() const override; |
68 virtual bool onGetKerningPairAdjustments(const uint16_t glyphs[], int count, | 67 virtual bool onGetKerningPairAdjustments(const uint16_t glyphs[], int count, |
69 int32_t adjustments[]) const override; | 68 int32_t adjustments[]) const override; |
70 virtual int onCharsToGlyphs(const void* chars, Encoding, uint16_t glyphs[], | 69 virtual int onCharsToGlyphs(const void* chars, Encoding, uint16_t glyphs[], |
71 int glyphCount) const override; | 70 int glyphCount) const override; |
72 int onCountGlyphs() const override; | 71 int onCountGlyphs() const override; |
73 | 72 |
74 LocalizedStrings* onCreateFamilyNameIterator() const override; | 73 LocalizedStrings* onCreateFamilyNameIterator() const override; |
75 | 74 |
76 int onGetTableTags(SkFontTableTag tags[]) const override; | 75 int onGetTableTags(SkFontTableTag tags[]) const override; |
77 virtual size_t onGetTableData(SkFontTableTag, size_t offset, | 76 virtual size_t onGetTableData(SkFontTableTag, size_t offset, |
78 size_t length, void* data) const override; | 77 size_t length, void* data) const override; |
79 | 78 |
80 private: | 79 private: |
81 mutable int fGlyphCount; | 80 mutable int fGlyphCount; |
82 | 81 |
83 typedef SkTypeface INHERITED; | 82 typedef SkTypeface INHERITED; |
84 }; | 83 }; |
85 | 84 |
86 #endif // SKFONTHOST_FREETYPE_COMMON_H_ | 85 #endif // SKFONTHOST_FREETYPE_COMMON_H_ |
OLD | NEW |