39 const char*
text =
"A";
112 canvas->
translate(- 3 * xOffset, 3 * yOffset);
113 canvas->
scale(1.5f, 1.5f);
116 canvas->
scale(.25f, .25f);
119 canvas->
scale(3.f, 2.f);
125 canvas->
scale(.33f, .5f);
130 canvas->
scale(1.2f, 1.1f);
135 canvas->
scale(1.1f, 1.2f);
140 canvas->
scale(.95f, 1.1f);
145 canvas->
scale(1.3f, .7f);
150 canvas->
scale(.8f, 1.1f);
155 canvas->
scale(1.f, 5.f);
160 canvas->
scale(5.f, 1.f);
167 inline static constexpr int kWidth = 1000;
168 inline static constexpr int kHeight = 1200;
170 using INHERITED =
GM;
175DEF_GM(
return new TextBlobTransforms;)
constexpr SkColor SK_ColorGRAY
@ kUTF8
uses bytes to represent UTF-8 or ASCII
#define SkScalarCeilToScalar(x)
void translate(SkScalar dx, SkScalar dy)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void rotate(SkScalar degrees)
void scale(SkScalar sx, SkScalar sy)
void drawTextBlob(const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint)
@ kAlias
no transparent pixels on glyph edges
const SkRect & bounds() const
GM(SkColor backgroundColor=SK_ColorWHITE)
void onDraw(SkCanvas *canvas) override
void onOnceBeforeDraw() override
SkISize getISize() override
SkString getName() const override
Optional< SkRect > bounds
font
Font Metadata and Metrics.
DEF_GM(return F(C(clipbox), 0.0f, 0.0f, {})) DEF_GM(return F(C(clipbox)
static constexpr SkISize Make(int32_t w, int32_t h)