Home | History | Annotate | Download | only in ports

Lines Matching refs:Style

4  * Use of this source code is governed by a BSD-style license that can be
35 SkTypeface_Android(const SkFontStyle& style,
38 : INHERITED(style, SkTypefaceCache::NewFontID(), isFixedPitch)
59 const SkFontStyle& style,
64 : INHERITED(style, isFixedPitch, familyName)
111 const SkFontStyle& style,
114 : INHERITED(style, isFixedPitch, familyName)
166 SkFontStyle style;
170 &familyName, &style, &isFixedWidth, &axisDefinitions))
177 int weight = fontFile.fWeight != 0 ? fontFile.fWeight : style.weight();
178 SkFontStyle::Slant slant = style.slant();
180 case FontFileInfo::Style::kAuto: slant = style.slant(); break;
181 case FontFileInfo::Style::kNormal: slant = SkFontStyle::kUpright_Slant; break;
182 case FontFileInfo::Style::kItalic: slant = SkFontStyle::kItalic_Slant; break;
185 style = SkFontStyle(weight, style.width(), slant);
207 style, isFixedWidth, familyName, lang, variant));
214 void getStyle(int index, SkFontStyle* style, SkString* name) override {
218 if (style) {
219 *style = this->style(index);
232 /** Find the typeface in this style set that most closely matches the given pattern.
243 SkFontStyle style = this->style(i);
244 int score = match_score(pattern, style);
254 SkFontStyle style(int index) {
350 const SkFontStyle& style) const override {
352 return sset->matchStyle(style);
356 const SkFontStyle& style) const override {
360 return fFontStyleSets[i]->matchStyle(style);
369 const SkFontStyle& style, bool elegant,
374 SkAutoTUnref<SkTypeface_AndroidSystem> face(family->matchStyle(style));
398 const SkFontStyle& style,
406 // TODO: add 'is_elegant' and 'is_compact' bits to 'style' request.
415 style, SkToBool(elegant),
426 style, SkToBool(elegant),
447 SkFontStyle style;
449 if (!fScanner.scanFont(stream, ttcIndex, &name, &style, &isFixedPitch, nullptr)) {
453 return new SkTypeface_AndroidStream(data, style, isFixedPitch, name);
460 SkFontStyle style;
463 if (!fScanner.scanFont(stream, params.getCollectionIndex(), &name, &style, &isFixedPitch,
476 return new SkTypeface_AndroidStream(data, style, isFixedPitch, name);
482 SkFontStyle style;
484 if (!fScanner.scanFont(stream, data->getIndex(), &name, &style, &isFixedPitch, nullptr)) {
487 return new SkTypeface_AndroidStream(data, style, isFixedPitch, name);
493 SkFontStyle style = SkFontStyle(styleBits);
500 return this->onMatchFamilyStyle(familyName, style);
502 return fDefaultFamily->matchStyle(style);