#include <typeface_font_asset_provider.h>
◆ TypefaceFontStyleSet()
| txt::TypefaceFontStyleSet::TypefaceFontStyleSet |
( |
| ) |
|
|
default |
◆ ~TypefaceFontStyleSet()
| txt::TypefaceFontStyleSet::~TypefaceFontStyleSet |
( |
| ) |
|
|
overridedefault |
◆ count()
| int txt::TypefaceFontStyleSet::count |
( |
| ) |
|
|
override |
◆ createTypeface()
| sk_sp< SkTypeface > txt::TypefaceFontStyleSet::createTypeface |
( |
int |
index | ) |
|
|
override |
Definition at line 94 of file typeface_font_asset_provider.cc.
94 {
96 if (index >= typefaces_.size()) {
97 return nullptr;
98 }
99 return typefaces_[index];
100}
References i.
◆ getStyle()
| void txt::TypefaceFontStyleSet::getStyle |
( |
int |
index, |
|
|
SkFontStyle * |
style, |
|
|
SkString * |
name |
|
) |
| |
|
override |
◆ matchStyle()
| sk_sp< SkTypeface > txt::TypefaceFontStyleSet::matchStyle |
( |
const SkFontStyle & |
pattern | ) |
|
|
override |
◆ registerTypeface()
| void txt::TypefaceFontStyleSet::registerTypeface |
( |
sk_sp< SkTypeface > |
typeface | ) |
|
Definition at line 71 of file typeface_font_asset_provider.cc.
71 {
72 if (typeface == nullptr) {
73 return;
74 }
75 typefaces_.emplace_back(std::move(typeface));
76}
The documentation for this class was generated from the following files: