214 {
215 static const char*
const faces[] = {
216 nullptr,
217 "Arial", "Times", "Times New Roman", "Helvetica", "Courier",
218 "Courier New", "Verdana", "monospace",
219 };
220
221 static const struct {
224 bool subpixel;
235 };
236
237 static const struct {
240 } gScaleRec[] = {
243
246 };
247
249 char const *
const txt =
"long.text.with.lots.of.dots.";
250 size_t textLen = strlen(
txt);
251
254
259
260 for (
size_t k = 0; k <
std::size(gScaleRec); ++k) {
261 font.setScaleX(gScaleRec[k].fScaleX);
262 font.setSkewX(gScaleRec[k].fSkewX);
263
265
267
268
270
272 }
273 }
274 }
275}
@ kNormal
glyph outlines modified to improve constrast
@ kNone
glyph outlines unchanged
@ kSlight
minimal modification to improve constrast
@ kUTF8
uses bytes to represent UTF-8 or ASCII
#define REPORTER_ASSERT(r, cond,...)
Optional< SkRect > bounds
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.
static sk_sp< SkShader > linear(sk_sp< SkShader > shader)