Lines Matching defs:font
47 const SkFont& font, const SkPaint& paint) {
48 const int count = font.countText(text, strlen(text), SkTextEncoding::kUTF8);
50 auto rec = builder.allocRunPos(font, count);
51 font.textToGlyphs(text, strlen(text), SkTextEncoding::kUTF8, rec.glyphs, count);
52 font.getPos(rec.glyphs, count, rec.points(), {x, y});
59 const SkFont& font, const SkPaint& paint) {
60 const int count = font.countText(text, strlen(text), SkTextEncoding::kUTF8);
62 auto rec = builder.allocRunPosH(font, count, 0);
63 font.textToGlyphs(text, strlen(text), SkTextEncoding::kUTF8, rec.glyphs, count);
64 font.getXPos(rec.glyphs, count, rec.pos);
70 SkFont font(ToolUtils::create_portable_typeface(), 24);
71 font.setEdging(SkFont::Edging::kAlias);
76 font, type);
77 SkScalar lineSpacing = font.getSpacing();
78 exercise_draw_pos_text(canvas, text, 32, size / 2 + Y + lineSpacing, font, type);
80 size / 2 + Y + 2 * lineSpacing, font, type);