#include <font_asset_provider.h>
Definition at line 26 of file font_asset_provider.h.
◆ ~FontAssetProvider()
virtual txt::FontAssetProvider::~FontAssetProvider |
( |
| ) |
|
|
virtualdefault |
◆ CanonicalFamilyName()
std::string txt::FontAssetProvider::CanonicalFamilyName |
( |
std::string |
family_name | ) |
|
|
staticprotected |
Definition at line 26 of file font_asset_provider.cc.
26 {
27 std::string
result(family_name.length(), 0);
28
29
31 [](char c) { return (c & 0x80) ? c : ::tolower(c); });
32
34}
static SkColor4f transform(SkColor4f c, SkColorSpace *src, SkColorSpace *dst)
◆ GetFamilyCount()
virtual size_t txt::FontAssetProvider::GetFamilyCount |
( |
| ) |
const |
|
pure virtual |
◆ GetFamilyName()
virtual std::string txt::FontAssetProvider::GetFamilyName |
( |
int |
index | ) |
const |
|
pure virtual |
◆ MatchFamily()
virtual sk_sp< SkFontStyleSet > txt::FontAssetProvider::MatchFamily |
( |
const std::string & |
family_name | ) |
|
|
pure virtual |
The documentation for this class was generated from the following files: