Home | History | Annotate | Download | only in hwui

Lines Matching full:glyphs

275     GlyphIDConverter glyphs(text, byteLength, origPaint);
278 std::unique_ptr<SkScalar[]> glyphWidths(new SkScalar[glyphs.count]);
279 glyphs.paint.getTextWidths(glyphs.glyphIDs, glyphs.count << 1, glyphWidths.get());
285 glyphs.paint.measureText(glyphs.glyphIDs, glyphs.count << 1, &bounds);
288 if (glyphs.paint.getTextAlign() != SkPaint::kLeft_Align) {
290 for (int i = 0; i < glyphs.count; i++) {
293 if (glyphs.paint.getTextAlign() == SkPaint::kCenter_Align) {
296 if (glyphs.paint.isVerticalText()) {
314 memcpy(text, glyphs.glyphIDs, glyphs.count * sizeof(uint16_t));
320 if (glyphs.paint.isVerticalText()) {
322 for (int i = 1; i < glyphs.count; i++) {
329 for (int i = 1; i < glyphs.count; i++) {
336 mCanvas->drawGlyphs(glyphFunc, glyphs.count, glyphs.paint, x, y, bounds.fLeft, bounds.fTop,
343 GlyphIDConverter glyphs(text, byteLength, origPaint);
360 for (int i = 0; i < glyphs.count; i++) {
362 glyphs.paint.measureText(&glyphs.glyphIDs[i], sizeof(uint16_t), &glyphBounds);
369 memcpy(text, glyphs.glyphIDs, glyphs.count * sizeof(uint16_t));
371 memcpy(positions, pos, 2 * glyphs.count * sizeof(float));
373 for (int i = 0, posIndex = 0; i < glyphs.count; i++) {
379 mCanvas->drawGlyphs(glyphFunc, glyphs.count, glyphs.paint, x, y, bounds.fLeft, bounds.fTop,
401 GlyphIDConverter glyphs(text, byteLength, paint); // Just get count
405 for (int i = 0; i < glyphs.count; i++) {
409 this->onDrawText((char*)text + (byteLength / glyphs.count * i), byteLength / glyphs.count,
429 this->drawText(it.glyphs(), textLen, x + offset.x(), y + offset.y(), runPaint);
436 this->drawPosText(it.glyphs(), textLen, pts.get(), runPaint);
447 this->drawPosText(it.glyphs(), textLen, pts.get(), runPaint);