#include <TextShaper.h>
|
enum class | VAlign : uint8_t {
kTop
, kTopBaseline
, kHybridTop
, kHybridCenter
,
kHybridBottom
, kVisualTop
, kVisualCenter
, kVisualBottom
} |
|
enum class | ResizePolicy : uint8_t { kNone
, kScaleToFit
, kDownscaleToFit
} |
|
enum class | LinebreakPolicy : uint8_t { kParagraph
, kExplicit
} |
|
enum class | Direction : uint8_t { kLTR
, kRTL
} |
|
enum class | Capitalization { kNone
, kUpperCase
} |
|
enum | Flags : uint32_t { kNone = 0x00
, kFragmentGlyphs = 0x01
, kTrackFragmentAdvanceAscent = 0x02
, kClusters = 0x04
} |
|
|
static Result | Shape (const SkString &text, const TextDesc &desc, const SkPoint &point, const sk_sp< SkFontMgr > &, const sk_sp< SkShapers::Factory > &) |
|
static Result | Shape (const SkString &text, const TextDesc &desc, const SkRect &box, const sk_sp< SkFontMgr > &, const sk_sp< SkShapers::Factory > &) |
|
static Result | Shape (const SkString &text, const TextDesc &desc, const SkPoint &point, const sk_sp< SkFontMgr > &) |
|
static Result | Shape (const SkString &text, const TextDesc &desc, const SkRect &box, const sk_sp< SkFontMgr > &) |
|
Definition at line 37 of file TextShaper.h.
◆ Capitalization
Enumerator |
---|
kNone | |
kUpperCase | |
Definition at line 137 of file TextShaper.h.
137 {
139 kUpperCase,
140 };
◆ Direction
◆ Flags
Enumerator |
---|
kNone | |
kFragmentGlyphs | |
kTrackFragmentAdvanceAscent | |
kClusters | |
Definition at line 142 of file TextShaper.h.
142 : uint32_t {
144
145
146
148
149
151
152
154 };
@ kTrackFragmentAdvanceAscent
◆ LinebreakPolicy
Enumerator |
---|
kParagraph | |
kExplicit | |
Definition at line 127 of file TextShaper.h.
127 : uint8_t {
128
130
131 kExplicit,
132 };
◆ ResizePolicy
Enumerator |
---|
kNone | |
kScaleToFit | |
kDownscaleToFit | |
Definition at line 116 of file TextShaper.h.
116 : uint8_t {
117
119
120
121 kScaleToFit,
122
123
124 kDownscaleToFit,
125 };
◆ VAlign
Enumerator |
---|
kTop | |
kTopBaseline | |
kHybridTop | |
kHybridCenter | |
kHybridBottom | |
kVisualTop | |
kVisualCenter | |
kVisualBottom | |
Definition at line 89 of file TextShaper.h.
89 : uint8_t {
90
92
93 kTopBaseline,
94
95
96
97
98
99
100
101
102
103
104
105
106 kHybridTop,
107 kHybridCenter,
108 kHybridBottom,
109
110
111 kVisualTop,
112 kVisualCenter,
113 kVisualBottom,
114 };
◆ Shape() [1/4]
Definition at line 748 of file TextShaper.cpp.
749 {
751}
static Result Shape(const SkString &text, const TextDesc &desc, const SkPoint &point, const sk_sp< SkFontMgr > &, const sk_sp< SkShapers::Factory > &)
sk_sp< Factory > BestAvailable()
◆ Shape() [2/4]
Definition at line 643 of file TextShaper.cpp.
644 {
646
649 ? Result()
650 : ShapeImpl(adjText,
desc,
SkRect::MakeEmpty().makeOffset(point.
x(), point.
y()),
651 fontmgr, shapingFactory, nullptr);
652}
virtual SkUnicode * getUnicode()=0
◆ Shape() [3/4]
◆ Shape() [4/4]
Definition at line 654 of file TextShaper.cpp.
655 {
657
658 switch(
desc.fResize) {
660 return ShapeImpl(adjText,
desc, box, fontmgr, shapingFactory,
nullptr);
662 return ShapeToFit(adjText,
desc, box, fontmgr, shapingFactory);
665 auto result = ShapeImpl(adjText,
desc, box, fontmgr, shapingFactory, &
size);
666
669 : ShapeToFit(adjText,
desc, box, fontmgr, shapingFactory);
670 }
671 }
672
674}
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
The documentation for this class was generated from the following files: