Definition at line 321 of file SkFontMgr_fuchsia.cpp.
◆ SkFontStyleSet_Fuchsia()
Definition at line 323 of file SkFontMgr_fuchsia.cpp.
325 : fFontManager(font_manager), fFamilyName(familyName), fStyles(styles) {}
◆ ~SkFontStyleSet_Fuchsia()
SkFontStyleSet_Fuchsia::~SkFontStyleSet_Fuchsia |
( |
| ) |
|
|
overridedefault |
◆ count()
int SkFontStyleSet_Fuchsia::count |
( |
| ) |
|
|
inlineoverridevirtual |
◆ createTypeface()
Implements SkFontStyleSet.
Definition at line 339 of file SkFontMgr_fuchsia.cpp.
339 {
340 SkASSERT(index >= 0 && index <
static_cast<int>(fStyles.size()));
341
342 if (fTypefaces.empty()) fTypefaces.resize(fStyles.size());
343
344 if (!fTypefaces[index]) {
345 fTypefaces[index] = fFontManager->FetchTypeface(
346 fFamilyName.c_str(), fStyles[index], nullptr,
347 0, 0,
348 false, true);
349 }
350
351 return fTypefaces[index];
352 }
◆ getStyle()
◆ matchStyle()
The documentation for this class was generated from the following file: