2#ifndef FontCollection_DEFINED
3#define FontCollection_DEFINED
37 std::vector<sk_sp<SkTypeface>>
findTypefaces(
const std::vector<SkString>& familyNames,
SkFontStyle fontStyle,
const std::optional<FontArguments>& fontArgs);
52 std::vector<sk_sp<SkFontMgr>> getFontManagerOrder()
const;
57 FamilyKey(
const std::vector<SkString>& familyNames,
SkFontStyle style,
const std::optional<FontArguments>&
args)
58 : fFamilyNames(familyNames), fFontStyle(style), fFontArguments(
args) {}
62 std::vector<SkString> fFamilyNames;
64 std::optional<FontArguments> fFontArguments;
73 bool fEnableFontFallback;
80 std::vector<SkString> fDefaultFamilyNames;
size_t getFontManagersCount() const
sk_sp< SkTypeface > defaultEmojiFallback(SkUnichar emojiStart, SkFontStyle fontStyle, const SkString &locale)
std::vector< sk_sp< SkTypeface > > findTypefaces(const std::vector< SkString > &familyNames, SkFontStyle fontStyle)
void disableFontFallback()
void setDefaultFontManager(sk_sp< SkFontMgr > fontManager)
void setAssetFontManager(sk_sp< SkFontMgr > fontManager)
sk_sp< SkFontMgr > getFallbackManager() const
ParagraphCache * getParagraphCache()
void enableFontFallback()
void setDynamicFontManager(sk_sp< SkFontMgr > fontManager)
void setTestFontManager(sk_sp< SkFontMgr > fontManager)
bool fontFallbackEnabled()
sk_sp< SkTypeface > defaultFallback()
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
bool operator==(const FontArguments &a, const FontArguments &b)
size_t operator()(const FamilyKey &key) const