Lines Matching refs:Style
4 * Use of this source code is governed by a BSD-style license that can be
30 SkTypeface_Custom(const SkFontStyle& style, bool isFixedPitch,
32 : INHERITED(style, SkTypefaceCache::NewFontID(), isFixedPitch)
75 SkTypeface_Stream(const SkFontStyle& style, bool isFixedPitch, bool sysFont,
77 : INHERITED(style, isFixedPitch, sysFont, familyName, index)
96 SkTypeface_File(const SkFontStyle& style, bool isFixedPitch, bool sysFont,
98 : INHERITED(style, isFixedPitch, sysFont, familyName, index)
134 void getStyle(int index, SkFontStyle* style, SkString* name) override {
138 *style = SkFontStyle(bold ? SkFontStyle::kBold_Weight : SkFontStyle::kNormal_Weight,
167 SkFontStyle style = SkFontStyle(bold ? SkFontStyle::kBold_Weight
173 int score = match_score(pattern, style);
296 SkFontStyle style;
298 if (fScanner.scanFont(stream, ttcIndex, &name, &style, &isFixedPitch, nullptr)) {
299 return new SkTypeface_Stream(style, isFixedPitch, false, name, stream.detach(),
312 SkTypeface::Style oldStyle = (SkTypeface::Style)styleBits;
313 SkFontStyle style = SkFontStyle(oldStyle & SkTypeface::kBold
323 tf = this->onMatchFamilyStyle(familyName, style);
327 tf = fDefaultFamily->matchStyle(style);
396 SkFontStyle style = SkFontStyle(); // avoid uninitialized warning
397 if (!scanner.scanFont(stream, faceIndex, &realname, &style, &isFixedPitch, nullptr)) {
403 SkTypeface_Custom* tf = new SkTypeface_File(style, isFixedPitch,
484 SkFontStyle style = SkFontStyle(); // avoid uninitialized warning
485 if (!scanner.scanFont(stream, faceIndex, &realname, &style, &isFixedPitch, nullptr)) {
491 new SkTypeface_Stream(style, isFixedPitch, true, // system-font (cannot delete)