Lines Matching refs:style
4 * Use of this source code is governed by a BSD-style license that can be
51 SkFontStyle FontStyle(const AnimationBuilder* abuilder, const char* style) {
86 // style is case insensitive.
87 SkAutoAsciiToLC lc_style(style);
88 style = lc_style.lc();
89 style = parse_map(gWeightMap, style, &weight);
90 style = parse_map(gSlantMap , style, &slant );
93 while (*style == ' ') ++style;
95 if (*style) {
96 abuilder->log(Logger::Level::kWarning, nullptr, "Unknown font style: %s.", style);
168 bool AnimationBuilder::FontInfo::matches(const char family[], const char style[]) const {
170 && 0 == strcmp(fStyle.c_str(), style);
268 // 2) system font (family/style)
309 // "style": "Regular", // part of the font key
326 const skjson::StringValue* jstyle = (*jchar)["style"]; // "style", not "fStyle"...
347 const auto* style = jstyle->begin();
350 // (family, style) -- not by name :( For now this performs a linear search over *all*
353 if (!current_font || !current_font->matches(family, style)) {
356 if (finfo->matches(family, style)) {
363 "Font not found for codepoint (%d, %s, %s).", uni, family, style);