Lines Matching refs:glyphs
242 GlyphIDConverter glyphs(text, byteLength, origPaint); in onDrawText() local
245 std::unique_ptr<SkPoint[]> pointStorage(new SkPoint[glyphs.count]); in onDrawText()
246 std::unique_ptr<SkScalar[]> glyphWidths(new SkScalar[glyphs.count]); in onDrawText()
247 glyphs.paint.getTextWidths(glyphs.glyphIDs, glyphs.count << 1, glyphWidths.get()); in onDrawText()
253 glyphs.paint.measureText(glyphs.glyphIDs, glyphs.count << 1, &bounds); in onDrawText()
256 if (glyphs.paint.getTextAlign() != SkPaint::kLeft_Align) { in onDrawText()
258 for (int i = 0; i < glyphs.count; i++) { in onDrawText()
261 if (glyphs.paint.getTextAlign() == SkPaint::kCenter_Align) { in onDrawText()
264 if (glyphs.paint.isVerticalText()) { in onDrawText()
282 if (glyphs.paint.isVerticalText()) { in onDrawText()
283 for (int i = 1; i < glyphs.count; i++) { in onDrawText()
287 for (int i = 1; i < glyphs.count; i++) { in onDrawText()
293 mCanvas->drawGlyphs(glyphs.glyphIDs, &pointStorage[0].fX, glyphs.count, glyphs.paint, in onDrawText()
300 GlyphIDConverter glyphs(text, byteLength, origPaint); in onDrawPosText() local
313 pointStorage.reset(new SkPoint[glyphs.count]); in onDrawPosText()
314 for (int i = 0; i < glyphs.count; i++) { in onDrawPosText()
326 for (int i = 0; i < glyphs.count; i++) { in onDrawPosText()
328 glyphs.paint.measureText(&glyphs.glyphIDs[i], sizeof(uint16_t), &glyphBounds); in onDrawPosText()
334 mCanvas->drawGlyphs(glyphs.glyphIDs, &posArray[0].fX, glyphs.count, glyphs.paint, x, y, in onDrawPosText()
351 GlyphIDConverter glyphs(text, byteLength, origPaint); in onDrawTextOnPath() local
352 mCanvas->drawGlyphsOnPath(glyphs.glyphIDs, glyphs.count, path, 0, 0, glyphs.paint); in onDrawTextOnPath()