42 const char*
text =
"AB";
90 inline static constexpr int kWidth = 275;
91 inline static constexpr int kHeight = 200;
98DEF_GM(
return new TextBlobBlockReordering;)
constexpr SkColor SK_ColorGRAY
constexpr SkColor SK_ColorRED
@ kUTF8
uses bytes to represent UTF-8 or ASCII
#define SkScalarFloorToInt(x)
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void drawColor(SkColor color, SkBlendMode mode=SkBlendMode::kSrcOver)
void drawTextBlob(const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint)
@ kAlias
no transparent pixels on glyph edges
void setColor(SkColor color)
void setBlendMode(SkBlendMode mode)
const SkRect & bounds() const
GM(SkColor backgroundColor=SK_ColorWHITE)
void onOnceBeforeDraw() override
TextBlobBlockReordering()
SkString getName() const override
SkISize getISize() override
void onDraw(SkCanvas *canvas) 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)