Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Side by Side Diff: src/ports/SkFontHost_FreeType_common.h

Issue 29363009: prototype for kerning api (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« src/core/SkTypeface.cpp ('K') | « src/ports/SkFontHost_FreeType.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 , fGlyphCount(-1) 52 , fGlyphCount(-1)
53 {} 53 {}
54 54
55 virtual SkScalerContext* onCreateScalerContext( 55 virtual SkScalerContext* onCreateScalerContext(
56 const SkDescriptor*) const SK_OVERRIDE; 56 const SkDescriptor*) const SK_OVERRIDE;
57 virtual void onFilterRec(SkScalerContextRec*) const SK_OVERRIDE; 57 virtual void onFilterRec(SkScalerContextRec*) const SK_OVERRIDE;
58 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( 58 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics(
59 SkAdvancedTypefaceMetrics::PerGlyphInfo, 59 SkAdvancedTypefaceMetrics::PerGlyphInfo,
60 const uint32_t*, uint32_t) const SK_OVERRIDE; 60 const uint32_t*, uint32_t) const SK_OVERRIDE;
61 virtual int onGetUPEM() const SK_OVERRIDE; 61 virtual int onGetUPEM() const SK_OVERRIDE;
62 62 virtual bool onGetKerningPairAdjustments(const uint16_t glyphs[], int count,
63 int32_t adjustments[]) const SK_OVERRIDE;
63 virtual int onCharsToGlyphs(const void* chars, Encoding, uint16_t glyphs[], 64 virtual int onCharsToGlyphs(const void* chars, Encoding, uint16_t glyphs[],
64 int glyphCount) const SK_OVERRIDE; 65 int glyphCount) const SK_OVERRIDE;
65 virtual int onCountGlyphs() const SK_OVERRIDE; 66 virtual int onCountGlyphs() const SK_OVERRIDE;
66 67
67 virtual LocalizedStrings* onCreateFamilyNameIterator() const SK_OVERRIDE; 68 virtual LocalizedStrings* onCreateFamilyNameIterator() const SK_OVERRIDE;
68 69
69 virtual int onGetTableTags(SkFontTableTag tags[]) const SK_OVERRIDE; 70 virtual int onGetTableTags(SkFontTableTag tags[]) const SK_OVERRIDE;
70 virtual size_t onGetTableData(SkFontTableTag, size_t offset, 71 virtual size_t onGetTableData(SkFontTableTag, size_t offset,
71 size_t length, void* data) const SK_OVERRIDE; 72 size_t length, void* data) const SK_OVERRIDE;
72 73
73 private: 74 private:
74 mutable int fGlyphCount; 75 mutable int fGlyphCount;
75 76
76 typedef SkTypeface INHERITED; 77 typedef SkTypeface INHERITED;
77 }; 78 };
78 79
79 #endif // SKFONTHOST_FREETYPE_COMMON_H_ 80 #endif // SKFONTHOST_FREETYPE_COMMON_H_
OLDNEW
« src/core/SkTypeface.cpp ('K') | « src/ports/SkFontHost_FreeType.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698