#include <Font.h>
Definition at line 56 of file Font.h.
◆ GlyphCompMapper()
skottie::internal::CustomFont::GlyphCompMapper::GlyphCompMapper |
( |
std::vector< std::unique_ptr< CustomFont > > && |
fonts | ) |
|
|
inlineexplicit |
Definition at line 58 of file Font.h.
59 : fFonts(std::move(
fonts)) {}
it will be possible to load the file into Perfetto s trace viewer disable asset fonts
◆ ~GlyphCompMapper()
skottie::internal::CustomFont::GlyphCompMapper::~GlyphCompMapper |
( |
| ) |
|
|
overridedefault |
◆ getGlyphComp()
Definition at line 212 of file Font.cpp.
213 {
214 for (
const auto&
font : fFonts) {
215 if (
font->typeface().get() == tf) {
216 auto* comp_node =
font->fGlyphComps.find(gid);
217 return comp_node ? *comp_node : nullptr;
218 }
219 }
220
221 return nullptr;
222}
font
Font Metadata and Metrics.
The documentation for this class was generated from the following files:
- third_party/skia/modules/skottie/src/text/Font.h
- third_party/skia/modules/skottie/src/text/Font.cpp