6 const char* fontFamily =
nullptr;
11 SkFont font1(typeface, 64.0f, 1.0f, 0.0f);
12 SkFont font2(typeface, 64.0f, 1.5f, 0.0f);
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
constexpr SkColor SK_ColorWHITE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void clear(SkColor color)
void drawTextBlob(const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint)
sk_sp< SkTypeface > legacyMakeTypeface(const char familyName[], SkFontStyle style) const
void setEdging(Edging edging)
@ kAntiAlias
may have transparent pixels on glyph edges
void setStyle(Style style)
void setColor(SkColor color)
void setAntiAlias(bool aa)
@ kStroke_Style
set to stroke geometry
void setStrokeWidth(SkScalar width)
static sk_sp< SkTextBlob > MakeFromString(const char *string, const SkFont &font, SkTextEncoding encoding=SkTextEncoding::kUTF8)
sk_sp< SkFontMgr > fontMgr
REG_FIDDLE(text_rendering, 256, 256, false, 0)