33 font.getPos(rec.glyphs,
count, rec.points());
48 const char text[] =
"HELLO, WORLD!";
54 canvas->rotate(45.0f);
55 p.setColor(0xF0800000);
60 canvas->scale(1, 4.0);
61 p.setColor(0xF0008000);
65 canvas->scale(1.0, 0.5);
66 p.setColor(0xF0000080);
74 canvas->clipRect({-1, -1, 613, 793},
false);
75 canvas->translate(-571, 0);
76 canvas->scale(0.75, 0.75);
77 canvas->clipRect({-1, -1, 613, 793},
false);
78 canvas->translate(0, -816);
79 canvas->drawRect({0, 0, 1224, 1500},
SkPaint());
constexpr SkColor SK_ColorWHITE
@ kUTF8
uses bytes to represent UTF-8 or ASCII
void drawTextBlob(const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint)
font
Font Metadata and Metrics.
DEF_SIMPLE_GM(pdf_crbug_772685, canvas, 612, 792)
DEF_SIMPLE_GM_CAN_FAIL(pdf_never_embed, canvas, errorMsg, 512, 512)
static void excercise_draw_pos_text(SkCanvas *canvas, const char *text, SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)