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

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

Issue 574873002: Add onGetFamilyName to SkTypeface. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add .get() for DirectWrite. Created 6 years, 3 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
« no previous file with comments | « no previous file | src/core/SkTypeface.cpp » ('j') | 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 /* 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 virtual void onGetFontDescriptor(SkFontDescriptor*, bool* isLocal) const = 0 ; 305 virtual void onGetFontDescriptor(SkFontDescriptor*, bool* isLocal) const = 0 ;
306 306
307 virtual int onCharsToGlyphs(const void* chars, Encoding, uint16_t glyphs[], 307 virtual int onCharsToGlyphs(const void* chars, Encoding, uint16_t glyphs[],
308 int glyphCount) const = 0; 308 int glyphCount) const = 0;
309 virtual int onCountGlyphs() const = 0; 309 virtual int onCountGlyphs() const = 0;
310 310
311 virtual int onGetUPEM() const = 0; 311 virtual int onGetUPEM() const = 0;
312 virtual bool onGetKerningPairAdjustments(const uint16_t glyphs[], int count, 312 virtual bool onGetKerningPairAdjustments(const uint16_t glyphs[], int count,
313 int32_t adjustments[]) const; 313 int32_t adjustments[]) const;
314 314
315 /** Returns the family name of the typeface as known by its font manager.
316 * This name may or may not be produced by the family name iterator.
317 */
318 virtual void onGetFamilyName(SkString* familyName) const = 0;
319
320 /** Returns an iterator over the family names in the font. */
315 virtual LocalizedStrings* onCreateFamilyNameIterator() const = 0; 321 virtual LocalizedStrings* onCreateFamilyNameIterator() const = 0;
316 322
317 virtual int onGetTableTags(SkFontTableTag tags[]) const = 0; 323 virtual int onGetTableTags(SkFontTableTag tags[]) const = 0;
318 virtual size_t onGetTableData(SkFontTableTag, size_t offset, 324 virtual size_t onGetTableData(SkFontTableTag, size_t offset,
319 size_t length, void* data) const = 0; 325 size_t length, void* data) const = 0;
320 326
321 private: 327 private:
322 friend class SkGTypeface; 328 friend class SkGTypeface;
323 friend class SkPDFFont; 329 friend class SkPDFFont;
324 friend class SkPDFCIDFont; 330 friend class SkPDFCIDFont;
(...skipping 23 matching lines...) Expand all
348 354
349 friend class SkPaint; 355 friend class SkPaint;
350 friend class SkGlyphCache; // GetDefaultTypeface 356 friend class SkGlyphCache; // GetDefaultTypeface
351 // just so deprecated fonthost can call protected methods 357 // just so deprecated fonthost can call protected methods
352 friend class SkFontHost; 358 friend class SkFontHost;
353 359
354 typedef SkWeakRefCnt INHERITED; 360 typedef SkWeakRefCnt INHERITED;
355 }; 361 };
356 362
357 #endif 363 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkTypeface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698