Flutter Engine
The Flutter Engine
third_party
skia
docs
examples
draw_text_fails.cpp
Go to the documentation of this file.
1
// Copyright 2020 Google LLC.
2
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3
#include "
tools/fiddle/examples.h
"
4
REG_FIDDLE
(draw_text_fails, 256, 46,
false
, 0) {
5
void
draw
(
SkCanvas
* canvas) {
6
canvas->
drawString
(
"ABCDE ⒶⒷⒸⒹⒺ 𝓐𝓑𝓒𝓓𝓔"
, 18, 32,
SkFont
(
nullptr
, 12),
SkPaint
());
7
}
8
}
// END FIDDLE
draw
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition:
aaclip.cpp:27
SkCanvas
Definition:
SkCanvas.h:106
SkCanvas::drawString
void drawString(const char str[], SkScalar x, SkScalar y, const SkFont &font, const SkPaint &paint)
Definition:
SkCanvas.h:1803
SkFont
Definition:
SkFont.h:35
SkPaint
Definition:
SkPaint.h:44
REG_FIDDLE
REG_FIDDLE(draw_text_fails, 256, 46, false, 0)
Definition:
draw_text_fails.cpp:4
examples.h
Generated on Sun Jun 23 2024 21:55:55 for Flutter Engine by
1.9.4