44 paint.setAntiAlias(
true);
47 const char*
text =
"Hello, Bazel world!";
48 size_t text_length = strlen(
text);
constexpr SkColor SK_ColorRED
@ kUTF8
uses bytes to represent UTF-8 or ASCII
SkString getName() const override
void onDraw(SkCanvas *canvas) override
bool isBazelOnly() const override
SkISize getISize() override
void drawSimpleText(const void *text, size_t byteLength, SkTextEncoding encoding, SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
font
Font Metadata and Metrics.
static constexpr SkISize Make(int32_t w, int32_t h)
constexpr float centerX() const
constexpr float centerY() const