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

Side by Side Diff: src/fonts/SkGScalerContext.cpp

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 | « src/fonts/SkGScalerContext.h ('k') | src/fonts/SkTestScalerContext.h » ('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 * Copyright 2013 Google Inc. 2 * Copyright 2013 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 #include "SkGScalerContext.h" 8 #include "SkGScalerContext.h"
9 #include "SkGlyph.h" 9 #include "SkGlyph.h"
10 #include "SkPath.h" 10 #include "SkPath.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 } 199 }
200 200
201 int SkGTypeface::onCountGlyphs() const { 201 int SkGTypeface::onCountGlyphs() const {
202 return fProxy->countGlyphs(); 202 return fProxy->countGlyphs();
203 } 203 }
204 204
205 int SkGTypeface::onGetUPEM() const { 205 int SkGTypeface::onGetUPEM() const {
206 return fProxy->getUnitsPerEm(); 206 return fProxy->getUnitsPerEm();
207 } 207 }
208 208
209 void SkGTypeface::onGetFamilyName(SkString* familyName) const {
210 fProxy->getFamilyName(familyName);
211 }
212
209 SkTypeface::LocalizedStrings* SkGTypeface::onCreateFamilyNameIterator() const { 213 SkTypeface::LocalizedStrings* SkGTypeface::onCreateFamilyNameIterator() const {
210 return fProxy->createFamilyNameIterator(); 214 return fProxy->createFamilyNameIterator();
211 } 215 }
212 216
213 int SkGTypeface::onGetTableTags(SkFontTableTag tags[]) const { 217 int SkGTypeface::onGetTableTags(SkFontTableTag tags[]) const {
214 return fProxy->getTableTags(tags); 218 return fProxy->getTableTags(tags);
215 } 219 }
216 220
217 size_t SkGTypeface::onGetTableData(SkFontTableTag tag, size_t offset, 221 size_t SkGTypeface::onGetTableData(SkFontTableTag tag, size_t offset,
218 size_t length, void* data) const { 222 size_t length, void* data) const {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 257
254 friend class SkGFontBuilder; 258 friend class SkGFontBuilder;
255 SkGFont(int count, Glyph* array); 259 SkGFont(int count, Glyph* array);
256 }; 260 };
257 261
258 class SkGFontBuilder { 262 class SkGFontBuilder {
259 public: 263 public:
260 264
261 }; 265 };
262 #endif 266 #endif
OLDNEW
« no previous file with comments | « src/fonts/SkGScalerContext.h ('k') | src/fonts/SkTestScalerContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698