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

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

Issue 22859070: Implement charToGlyph on remaining ports. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Tabs and line length. Created 7 years, 2 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
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 SkStream* SkGTypeface::onOpenStream(int* ttcIndex) const { 188 SkStream* SkGTypeface::onOpenStream(int* ttcIndex) const {
189 return fProxy->openStream(ttcIndex); 189 return fProxy->openStream(ttcIndex);
190 } 190 }
191 191
192 void SkGTypeface::onGetFontDescriptor(SkFontDescriptor* desc, 192 void SkGTypeface::onGetFontDescriptor(SkFontDescriptor* desc,
193 bool* isLocal) const { 193 bool* isLocal) const {
194 fProxy->getFontDescriptor(desc, isLocal); 194 fProxy->getFontDescriptor(desc, isLocal);
195 } 195 }
196 196
197 int SkGTypeface::onCharsToGlyphs(const void* chars, Encoding encoding,
198 uint16_t glyphs[], int glyphCount) const {
199 return fProxy->charsToGlyphs(chars, encoding, glyphs, glyphCount);
200 }
201
197 int SkGTypeface::onCountGlyphs() const { 202 int SkGTypeface::onCountGlyphs() const {
198 return fProxy->countGlyphs(); 203 return fProxy->countGlyphs();
199 } 204 }
200 205
201 int SkGTypeface::onGetUPEM() const { 206 int SkGTypeface::onGetUPEM() const {
202 return fProxy->getUnitsPerEm(); 207 return fProxy->getUnitsPerEm();
203 } 208 }
204 209
205 SkTypeface::LocalizedStrings* SkGTypeface::onCreateFamilyNameIterator() const { 210 SkTypeface::LocalizedStrings* SkGTypeface::onCreateFamilyNameIterator() const {
206 return fProxy->createFamilyNameIterator(); 211 return fProxy->createFamilyNameIterator();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 263
259 friend class SkGFontBuilder; 264 friend class SkGFontBuilder;
260 SkGFont(int count, Glyph* array); 265 SkGFont(int count, Glyph* array);
261 }; 266 };
262 267
263 class SkGFontBuilder { 268 class SkGFontBuilder {
264 public: 269 public:
265 270
266 }; 271 };
267 #endif 272 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698