30 paint.setColor(0xff008000);
31 paint.setAntiAlias(
true);
42 const float upem =
font.getTypeface()->getUnitsPerEm();
53 font.getMetrics(&metrics);
54 builder.setMetrics(metrics, 1.0f/upem);
56 builder.setFontStyle(
font.getTypeface()->fontStyle());
59 for (
SkGlyphID index = 0; index <= 127; ++index) {
105 *spacing =
font.getMetrics(
nullptr);
118 paint.setAntiAlias(
true);
128 paint.setColor(0xFFDDDDDD);
132 paint.setColor(0xFFCCCCCC);
146 waterfall(fTF,
false);
constexpr SkColor SK_ColorBLACK
@ kNone
glyph outlines unchanged
#define SkScalarRoundToInt(x)
void drawRect(const SkRect &rect, const SkPaint &paint)
void translate(SkScalar dx, SkScalar dy)
void drawTextBlob(const SkTextBlob *blob, SkScalar x, SkScalar y, const SkPaint &paint)
@ kAntiAlias
may have transparent pixels on glyph edges
static SkMatrix Scale(SkScalar sx, SkScalar sy)
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkDrawable > finishRecordingAsDrawable()
static sk_sp< SkTextBlob > MakeFromString(const char *string, const SkFont &font, SkTextEncoding encoding=SkTextEncoding::kUTF8)
void serialize(SkWStream *, SerializeBehavior=SerializeBehavior::kIncludeDataIfLocal) const
static sk_sp< SkTypeface > MakeDeserialize(SkStream *, sk_sp< SkFontMgr > lastResortMgr)
void onDraw(SkCanvas *canvas) override
bool runAsBench() const override
void onOnceBeforeDraw() override
SkString getName() const override
static sk_sp< SkTextBlob > make_blob(sk_sp< SkTypeface > tf, float size, float *spacing)
SkISize getISize() override
Optional< SkRect > bounds
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
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.
std::shared_ptr< const fml::Mapping > data
static sk_sp< SkDrawable > make_drawable(const SkPath &path)
static sk_sp< SkTypeface > make_tf()
static sk_sp< SkTypeface > round_trip(sk_sp< SkTypeface > tf)