Lines Matching refs:style
4 * Use of this source code is governed by a BSD-style license that can be
36 SkTypeface_Android(const SkFontStyle& style,
39 : INHERITED(style, isFixedPitch)
60 const SkFontStyle& style,
65 : INHERITED(style, isFixedPitch, familyName)
130 const SkFontStyle& style,
133 : INHERITED(style, isFixedPitch, familyName)
197 SkFontStyle style;
201 &familyName, &style, &isFixedWidth, &axisDefinitions))
208 int weight = fontFile.fWeight != 0 ? fontFile.fWeight : style.weight();
209 SkFontStyle::Slant slant = style.slant();
211 case FontFileInfo::Style::kAuto: slant = style.slant(); break;
216 style = SkFontStyle(weight, style.width(), slant);
240 style, isFixedWidth, familyName, family.fLanguages, variant));
247 void getStyle(int index, SkFontStyle* style, SkString* name) override {
251 if (style) {
252 *style = fStyles[index]->fontStyle();
356 const SkFontStyle& style) const override {
358 return sset->matchStyle(style);
364 const SkFontStyle& style, bool elegant,
372 sk_sp<SkTypeface_AndroidSystem> face(family->matchStyle(style));
394 const SkFontStyle& style,
401 // TODO: add 'is_elegant' and 'is_compact' bits to 'style' request.
412 style, SkToBool(elegant),
423 style, SkToBool(elegant),
446 SkFontStyle style;
448 if (!fScanner.scanFont(stream.get(), ttcIndex, &name, &style, &isFixedPitch, nullptr)) {
453 style, isFixedPitch, name));
460 SkFontStyle style;
464 &name, &style, &isFixedPitch, &axisDefinitions))
476 style, isFixedPitch, name));
479 sk_sp<SkTypeface> onLegacyMakeTypeface(const char familyName[], SkFontStyle style) const override {
485 return sk_sp<SkTypeface>(this->onMatchFamilyStyle(familyName, style));
487 return sk_sp<SkTypeface>(fDefaultStyleSet->matchStyle(style));