333 {
336 font.setSubpixel(
true);
338 font.setScaleX(fScaleX);
339 font.setSkewX(fSkewX);
340
342
346 *errorMsg = "No families in SkFontMgr under test.";
347 return DrawResult::kSkip;
348 }
349
350 int index = 0;
352
354
355 for (
int i = 0; i <
count; ++i) {
357 for (
int j = 0; j <
set->count() && j < 3; ++j) {
359
360
364 SkRect drawBounds = show_bounds(canvas, font,
x,
y,
color, fLabelBounds);
365 x += drawBounds.
width() + 20;
366 index += 1;
370 }
372 return DrawResult::kOk;
373 }
374 }
375 }
376 }
377 return DrawResult::kOk;
378 }
constexpr SkColor SK_ColorBLUE
constexpr SkColor SK_ColorRED
void translate(SkScalar dx, SkScalar dy)
sk_sp< SkFontStyleSet > createStyleSet(int index) const
int countFamilies() const
@ kAntiAlias
may have transparent pixels on glyph edges
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not set
font
Font Metadata and Metrics.
constexpr float width() const