#include <typeface_font_asset_provider.h>
◆ TypefaceFontStyleSet()
txt::TypefaceFontStyleSet::TypefaceFontStyleSet |
( |
| ) |
|
|
default |
◆ ~TypefaceFontStyleSet()
txt::TypefaceFontStyleSet::~TypefaceFontStyleSet |
( |
| ) |
|
|
overridedefault |
◆ count()
int txt::TypefaceFontStyleSet::count |
( |
| ) |
|
|
overridevirtual |
◆ createTypeface()
◆ getStyle()
Implements SkFontStyleSet.
Definition at line 94 of file typeface_font_asset_provider.cc.
96 {
97 FML_DCHECK(
static_cast<size_t>(index) < typefaces_.size());
98 if (style) {
99 *style = typefaces_[index]->fontStyle();
100 }
103 }
104}
#define FML_DCHECK(condition)
DEF_SWITCHES_START aot vmservice shared library name
◆ matchStyle()
◆ registerTypeface()
void txt::TypefaceFontStyleSet::registerTypeface |
( |
sk_sp< SkTypeface > |
typeface | ) |
|
Definition at line 83 of file typeface_font_asset_provider.cc.
83 {
84 if (typeface == nullptr) {
85 return;
86 }
87 typefaces_.emplace_back(std::move(typeface));
88}
The documentation for this class was generated from the following files: