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

Side by Side Diff: include/core/SkTypeface.h

Issue 19231003: Implement onCountGlyphs and onGetUPEM on Windows. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 5 months 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
« no previous file with comments | « no previous file | src/core/SkTypeface.cpp » ('j') | src/core/SkTypeface.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 virtual void onFilterRec(SkScalerContextRec*) const = 0; 265 virtual void onFilterRec(SkScalerContextRec*) const = 0;
266 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics( 266 virtual SkAdvancedTypefaceMetrics* onGetAdvancedTypefaceMetrics(
267 SkAdvancedTypefaceMetrics::PerGlyphInfo perGlyphInfo, 267 SkAdvancedTypefaceMetrics::PerGlyphInfo perGlyphInfo,
268 const uint32_t* glyphIDs, 268 const uint32_t* glyphIDs,
269 uint32_t glyphIDsCount) const = 0; 269 uint32_t glyphIDsCount) const = 0;
270 virtual SkStream* onOpenStream(int* ttcIndex) const = 0; 270 virtual SkStream* onOpenStream(int* ttcIndex) const = 0;
271 virtual void onGetFontDescriptor(SkFontDescriptor*, bool* isLocal) const = 0 ; 271 virtual void onGetFontDescriptor(SkFontDescriptor*, bool* isLocal) const = 0 ;
272 272
273 virtual int onCharsToGlyphs(const void* chars, Encoding, uint16_t glyphs[], 273 virtual int onCharsToGlyphs(const void* chars, Encoding, uint16_t glyphs[],
274 int glyphCount) const; 274 int glyphCount) const;
275 virtual int onCountGlyphs() const; 275 virtual int onCountGlyphs() const = 0;
276 276
277 virtual int onGetUPEM() const; 277 virtual int onGetUPEM() const = 0;
278 278
279 virtual int onGetTableTags(SkFontTableTag tags[]) const; 279 virtual int onGetTableTags(SkFontTableTag tags[]) const;
280 virtual size_t onGetTableData(SkFontTableTag, size_t offset, 280 virtual size_t onGetTableData(SkFontTableTag, size_t offset,
281 size_t length, void* data) const; 281 size_t length, void* data) const;
282 282
283 private: 283 private:
284 SkFontID fUniqueID; 284 SkFontID fUniqueID;
285 Style fStyle; 285 Style fStyle;
286 bool fIsFixedPitch; 286 bool fIsFixedPitch;
287 287
288 friend class SkPaint; 288 friend class SkPaint;
289 friend class SkGlyphCache; // GetDefaultTypeface 289 friend class SkGlyphCache; // GetDefaultTypeface
290 // just so deprecated fonthost can call protected methods 290 // just so deprecated fonthost can call protected methods
291 friend class SkFontHost; 291 friend class SkFontHost;
292 292
293 typedef SkWeakRefCnt INHERITED; 293 typedef SkWeakRefCnt INHERITED;
294 }; 294 };
295 295
296 #endif 296 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkTypeface.cpp » ('j') | src/core/SkTypeface.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698