39 const int idst[],
int count) {
80 paint.setAntiAlias(
true);
87 const int src1[] = { 0, 0 };
88 const int dst1[] = { 5, 5 };
95 const int src2[] = { 32, 32, 64, 32 };
96 const int dst2[] = { 32, 32, 64, 48 };
103 const int src3[] = { 0, 0, 64, 0, 0, 64 };
104 const int dst3[] = { 0, 0, 96, 0, 24, 64 };
111 const int src4[] = { 0, 0, 64, 0, 64, 64, 0, 64 };
112 const int dst4[] = { 0, 0, 96, 0, 64, 96, 0, 64 };
constexpr SkColor SK_ColorGRAY
constexpr SkColor SK_ColorRED
@ kGlyphID
uses two byte words to represent glyph indices
SkISize getISize() override
SkString getName() const override
static void doDraw(SkCanvas *canvas, const SkFont &font, SkPaint *paint, const int isrc[], const int idst[], int count)
void onOnceBeforeDraw() override
void onDraw(SkCanvas *canvas) override
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void drawLine(SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const SkPaint &paint)
void concat(const SkMatrix &matrix)
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
static void Draw(SkCanvas *, const void *text, size_t size, SkTextEncoding, SkScalar x, SkScalar y, const SkFont &, const SkPaint &, Align=kLeft_Align)
unsigned useCenter Optional< SkMatrix > matrix
font
Font Metadata and Metrics.
SkScalar fAscent
distance to reserve above baseline, typically negative
SkScalar fDescent
distance to reserve below baseline, typically positive
static constexpr SkISize Make(int32_t w, int32_t h)
static constexpr SkRect MakeWH(float w, float h)