24 std::string family_name);
34 void getStyle(
int index, SkFontStyle*, SkString* style)
override;
38 decltype(std::declval<SkFontStyleSet>().createTypeface(0));
42 using MatchStyleRet =
decltype(std::declval<SkFontStyleSet>().matchStyle(
43 std::declval<SkFontStyle>()));
47 std::shared_ptr<AssetManager> asset_manager_;
48 std::string family_name_;
50 struct TypefaceAsset {
51 explicit TypefaceAsset(std::string a);
53 TypefaceAsset(
const TypefaceAsset& other);
58 sk_sp<SkTypeface> typeface;
60 std::vector<TypefaceAsset> assets_;