Lines Matching refs:fuchsia

10 #include <fuchsia/fonts/cpp/fidl.h>
45 sk_sp<SkData> MakeSkDataFromBuffer(const fuchsia::mem::Buffer& data,
55 fuchsia::fonts::Slant SkToFuchsiaSlant(SkFontStyle::Slant slant) {
58 return fuchsia::fonts::Slant::OBLIQUE;
60 return fuchsia::fonts::Slant::ITALIC;
63 return fuchsia::fonts::Slant::UPRIGHT;
67 SkFontStyle::Slant FuchsiaToSkSlant(fuchsia::fonts::Slant slant) {
69 case fuchsia::fonts::Slant::OBLIQUE:
71 case fuchsia::fonts::Slant::ITALIC:
73 case fuchsia::fonts::Slant::UPRIGHT:
79 fuchsia::fonts::Width SkToFuchsiaWidth(SkFontStyle::Width width) {
82 return fuchsia::fonts::Width::ULTRA_CONDENSED;
84 return fuchsia::fonts::Width::EXTRA_CONDENSED;
86 return fuchsia::fonts::Width::CONDENSED;
88 return fuchsia::fonts::Width::SEMI_CONDENSED;
90 return fuchsia::fonts::Width::NORMAL;
92 return fuchsia::fonts::Width::SEMI_EXPANDED;
94 return fuchsia::fonts::Width::EXPANDED;
96 return fuchsia::fonts::Width::EXTRA_EXPANDED;
98 return fuchsia::fonts::Width::ULTRA_EXPANDED;
105 bool SkToFuchsiaWidth(int skWidth, fuchsia::fonts::Width* outFuchsiaWidth) {
115 SkFontStyle::Width FuchsiaToSkWidth(fuchsia::fonts::Width width) {
117 case fuchsia::fonts::Width::ULTRA_CONDENSED:
119 case fuchsia::fonts::Width::EXTRA_CONDENSED:
121 case fuchsia::fonts::Width::CONDENSED:
123 case fuchsia::fonts::Width::SEMI_CONDENSED:
125 case fuchsia::fonts::Width::NORMAL:
127 case fuchsia::fonts::Width::SEMI_EXPANDED:
129 case fuchsia::fonts::Width::EXPANDED:
131 case fuchsia::fonts::Width::EXTRA_EXPANDED:
133 case fuchsia::fonts::Width::ULTRA_EXPANDED:
138 fuchsia::fonts::Style2 SkToFuchsiaStyle(const SkFontStyle& style) {
139 fuchsia::fonts::Style2 fuchsiaStyle;
142 fuchsia::fonts::Width fuchsiaWidth = fuchsia::fonts::Width::NORMAL;
152 fuchsia::fonts::GenericFontFamily fGenericFontFamily;
153 } kGenericFontFamiliesByName[] = {{"serif", fuchsia::fonts::GenericFontFamily::SERIF},
154 {"sans", fuchsia::fonts::GenericFontFamily::SANS_SERIF},
155 {"sans-serif", fuchsia::fonts::GenericFontFamily::SANS_SERIF},
156 {"mono", fuchsia::fonts::GenericFontFamily::MONOSPACE},
157 {"monospace", fuchsia::fonts::GenericFontFamily::MONOSPACE},
158 {"cursive", fuchsia::fonts::GenericFontFamily::CURSIVE},
159 {"fantasy", fuchsia::fonts::GenericFontFamily::FANTASY},
160 {"system-ui", fuchsia::fonts::GenericFontFamily::SYSTEM_UI},
161 {"emoji", fuchsia::fonts::GenericFontFamily::EMOJI},
162 {"math", fuchsia::fonts::GenericFontFamily::MATH},
163 {"fangsong", fuchsia::fonts::GenericFontFamily::FANGSONG}};
167 fuchsia::fonts::GenericFontFamily* outGenericFamily) {
232 SkFontMgr_Fuchsia(fuchsia::fonts::ProviderSyncPtr provider);
260 sk_sp<SkData> GetOrCreateSkData(int bufferId, const fuchsia::mem::Buffer& buffer) const;
263 sk_sp<SkTypeface> GetOrCreateTypeface(TypefaceId id, const fuchsia::mem::Buffer& buffer) const;
265 mutable fuchsia::fonts::ProviderSyncPtr fFontProvider;
316 SkFontMgr_Fuchsia::SkFontMgr_Fuchsia(fuchsia::fonts::ProviderSyncPtr provider)
337 fuchsia::fonts::FamilyName typedFamilyName;
340 fuchsia::fonts::FontFamilyInfo familyInfo;
401 fuchsia::fonts::TypefaceQuery query;
405 std::vector<fuchsia::intl::LocaleId> languages{};
407 fuchsia::intl::LocaleId localeId;
420 fuchsia::fonts::GenericFontFamily genericFontFamily =
421 fuchsia::fonts::GenericFontFamily::SANS_SERIF;
429 fuchsia::fonts::FamilyName typedFamilyName{};
434 fuchsia::fonts::TypefaceRequestFlags flags{};
435 if (!allow_fallback) flags |= fuchsia::fonts::TypefaceRequestFlags::EXACT_FAMILY;
436 if (exact_style_match) flags |= fuchsia::fonts::TypefaceRequestFlags::EXACT_STYLE;
438 fuchsia::fonts::TypefaceRequest request;
442 fuchsia::fonts::TypefaceResponse response;
454 const fuchsia::mem::Buffer& buffer) const {
484 const fuchsia::mem::Buffer& buffer) const {
498 SK_API sk_sp<SkFontMgr> SkFontMgr_New_Fuchsia(fuchsia::fonts::ProviderSyncPtr provider) {