4 {
6 const char* fontFamily = nullptr;
8
10
11 SkFont font1(typeface, 64.0f, 1.0f, 0.0f);
12 SkFont font2(typeface, 64.0f, 1.5f, 0.0f);
15
16
17
18
19
22
24
27
32
35
40}
41}
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
@ 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