Go to the source code of this file.
◆ make_drawable()
Definition at line 23 of file userfont.cpp.
23 {
25
28
30 paint.setColor(0xff008000);
31 paint.setAntiAlias(
true);
32
33 canvas->drawPath(path,
paint);
34
36}
SkCanvas * beginRecording(const SkRect &bounds, sk_sp< SkBBoxHierarchy > bbh)
sk_sp< SkDrawable > finishRecordingAsDrawable()
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
◆ make_tf()
Definition at line 38 of file userfont.cpp.
38 {
42 const float upem =
font.getTypeface()->getUnitsPerEm();
43
44
47
48
50
51 {
53 font.getMetrics(&metrics);
54 builder.setMetrics(metrics, 1.0f/upem);
55 }
56 builder.setFontStyle(
font.getTypeface()->fontStyle());
57
58
59 for (
SkGlyphID index = 0; index <= 127; ++index) {
61
65 font.getPath(glyph, &path);
67
68
69 if (index % 2) {
71 } else {
73 }
74 }
75
77}
@ kNone
glyph outlines unchanged
static SkMatrix Scale(SkScalar sx, SkScalar sy)
font
Font Metadata and Metrics.
static sk_sp< SkDrawable > make_drawable(const SkPath &path)
◆ round_trip()
Definition at line 81 of file userfont.cpp.
81 {
86 return face;
87}
void serialize(SkWStream *, SerializeBehavior=SerializeBehavior::kIncludeDataIfLocal) const
static sk_sp< SkTypeface > MakeDeserialize(SkStream *, sk_sp< SkFontMgr > lastResortMgr)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data