Lines Matching refs:finfo
256 fFonts.foreach([&](const SkString& name, FontInfo* finfo) {
257 SkASSERT(finfo);
259 if (finfo->fTypeface) {
271 finfo->fTypeface = fResourceProvider->loadTypeface(name.c_str(), finfo->fPath.c_str());
275 if (!finfo->fTypeface) {
276 finfo->fTypeface = fmgr->makeFromData(
277 fResourceProvider->loadFont(name.c_str(), finfo->fPath.c_str()));
280 if (!finfo->fTypeface) {
281 finfo->fTypeface.reset(fmgr->matchFamilyStyle(finfo->fFamily.c_str(),
282 FontStyle(this, finfo->fStyle.c_str())));
284 if (!finfo->fTypeface) {
286 finfo->fFamily.c_str(), finfo->fStyle.c_str());
288 finfo->fTypeface = fmgr->legacyMakeTypeface(nullptr,
289 FontStyle(this, finfo->fStyle.c_str()));
291 has_unresolved |= !finfo->fTypeface;
355 fFonts.foreach([&](const SkString& name, FontInfo* finfo) {
356 if (finfo->matches(family, style)) {
357 current_font = finfo;
387 fFonts.foreach([&has_unresolved](const SkString&, FontInfo* finfo) {
388 if (finfo->fTypeface) {
392 finfo->fTypeface = finfo->fCustomBuilder.detach();
394 has_unresolved |= !finfo->fTypeface;