#include <SkCustomTypeface.h>
Definition at line 27 of file SkCustomTypeface.h.
◆ SkCustomTypefaceBuilder()
SkCustomTypefaceBuilder::SkCustomTypefaceBuilder |
( |
| ) |
|
◆ detach()
Definition at line 180 of file SkCustomTypeface.cpp.
180 {
181 if (fGlyphRecs.empty()) return nullptr;
182
183
185
186 for (const auto& rec : fGlyphRecs) {
187 bounds.join(rec.isDrawable()
188 ? rec.fBounds
189 : rec.fPath.getBounds());
190 }
191
196
198}
friend class SkUserTypeface
Optional< SkRect > bounds
SkScalar fTop
greatest extent above origin of any glyph bounding box, typically negative; deprecated with variable ...
SkScalar fBottom
greatest extent below origin of any glyph bounding box, typically positive; deprecated with variable ...
SkScalar fXMin
greatest extent to left of origin of any glyph bounding box, typically negative; deprecated with vari...
SkScalar fXMax
greatest extent to right of origin of any glyph bounding box, typically positive; deprecated with var...
◆ MakeFromStream()
◆ setFontStyle()
void SkCustomTypefaceBuilder::setFontStyle |
( |
SkFontStyle |
style | ) |
|
◆ setGlyph() [1/2]
void SkCustomTypefaceBuilder::setGlyph |
( |
SkGlyphID |
index, |
|
|
float |
advance, |
|
|
const SkPath & |
path |
|
) |
| |
Definition at line 164 of file SkCustomTypeface.cpp.
164 {
165 auto& rec = this->ensureStorage(index);
166 rec.fAdvance = advance;
168 rec.fDrawable = nullptr;
169}
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
◆ setGlyph() [2/2]
Definition at line 171 of file SkCustomTypeface.cpp.
172 {
173 auto& rec = this->ensureStorage(index);
174 rec.fAdvance = advance;
175 rec.fDrawable = std::move(drawable);
177 rec.fPath.reset();
178}
◆ setMetrics()
void SkCustomTypefaceBuilder::setMetrics |
( |
const SkFontMetrics & |
fm, |
|
|
float |
scale = 1 |
|
) |
| |
Definition at line 148 of file SkCustomTypeface.cpp.
148 {
150}
static SkFontMetrics scale_fontmetrics(const SkFontMetrics &src, float sx, float sy)
◆ SkTypeface
◆ SkUserTypeface
◆ FactoryId
The documentation for this class was generated from the following files: