Go to the source code of this file.
|
| REG_FIDDLE (measure_text_bounds, 256, 128, false, 0) |
|
◆ REG_FIDDLE()
REG_FIDDLE |
( |
measure_text_bounds |
, |
|
|
256 |
, |
|
|
128 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file measure_text_bounds.cpp.
4 {
7
9 paint.setAntiAlias(
true);
11
14 const char text[] =
"Skia";
15
18
20
23}
24}
constexpr SkColor SK_ColorWHITE
@ kUTF8
uses bytes to represent UTF-8 or ASCII
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawRect(const SkRect &rect, const SkPaint &paint)
void clear(SkColor color)
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
sk_sp< SkTypeface > matchFamilyStyle(const char familyName[], const SkFontStyle &) const
sk_sp< SkFontMgr > fontMgr
Optional< SkRect > bounds
font
Font Metadata and Metrics.