42 if (!font_name || !
text || !text_size || !line_height) {
65 v->
fHAlign = gAlignMap[std::min<size_t>(ParseDefault<size_t>((*jtxt)[
"j"], 0),
70 if (jsz->size() == 2) {
71 v->
fBox.
setWH(ParseDefault<SkScalar>((*jsz)[0], 0),
72 ParseDefault<SkScalar>((*jsz)[1], 0));
78 if (jps->size() == 2) {
79 v->
fBox.
offset(ParseDefault<SkScalar>((*jps)[0], 0),
80 ParseDefault<SkScalar>((*jps)[1], 0));
98 ParseDefault<size_t>((*jtxt)[
"sk_rs"], 0)),
102 v->
fMinTextSize = ParseDefault<SkScalar>((*jtxt)[
"mf"], 0.0f);
104 v->
fMaxLines = ParseDefault<size_t> ((*jtxt)[
"xl"], 0);
114 if (text_mode >= 0) {
126 v->
fCapitalization = gCapMap[std::min<size_t>(ParseDefault<size_t>((*jtxt)[
"ca"], 0),
155 static_assert(
std::size(gVAlignMap) > 2);
170 "Ignoring unknown 'sk_vj' value: %zu", vj);
204 v->
fStrokeJoin = gJoins[std::min<size_t>(ParseDefault<size_t>((*jtxt)[
"lj"], 1) - 1,
@ kMiter_Join
extends to miter limit
@ kBevel_Join
connects outside edges
void set(const SkString &src)
const char * begin() const
void log(Logger::Level, const skjson::Value *, const char fmt[],...) const SK_PRINTF_LIKE(4
const FontInfo * findFont(const SkString &name) const
static float max(float r, float g, float b)
static float min(float r, float g, float b)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
font
Font Metadata and Metrics.
bool Parse(const skjson::Value &jv, const internal::AnimationBuilder &abuilder, TextValue *v)
T ParseDefault(const skjson::Value &v, const T &defaultValue)
bool Parse(const skjson::Value &, T *)
void setWH(float width, float height)
void offset(float dx, float dy)
sk_sp< SkTypeface > fTypeface
SkPaint::Join fStrokeJoin
Shaper::Direction fDirection
Shaper::LinebreakPolicy fLineBreak
TextPaintOrder fPaintOrder
Shaper::Capitalization fCapitalization
Shaper::ResizePolicy fResize
SkTextUtils::Align fHAlign