Lines Matching refs:custom
263 SkFontMgr_Android(const SkFontMgr_Android_CustomFonts* custom) { in SkFontMgr_Android() argument
265 if (custom && SkFontMgr_Android_CustomFonts::kPreferSystem != custom->fSystemFontUse) { in SkFontMgr_Android()
266 SkString base(custom->fBasePath); in SkFontMgr_Android()
268 families, base, custom->fFontsXml, custom->fFallbackFontsXml); in SkFontMgr_Android()
270 if (!custom || in SkFontMgr_Android()
271 (custom && SkFontMgr_Android_CustomFonts::kOnlyCustom != custom->fSystemFontUse)) in SkFontMgr_Android()
275 if (custom && SkFontMgr_Android_CustomFonts::kPreferSystem == custom->fSystemFontUse) { in SkFontMgr_Android()
276 SkString base(custom->fBasePath); in SkFontMgr_Android()
278 families, base, custom->fFontsXml, custom->fFallbackFontsXml); in SkFontMgr_Android()
280 this->buildNameToFamilyMap(families, custom ? custom->fIsolated : false); in SkFontMgr_Android()
541 sk_sp<SkFontMgr> SkFontMgr_New_Android(const SkFontMgr_Android_CustomFonts* custom) { in SkFontMgr_New_Android() argument
542 if (custom) { in SkFontMgr_New_Android()
543 SkASSERT(0 <= custom->fSystemFontUse); in SkFontMgr_New_Android()
544 SkASSERT(custom->fSystemFontUse < SK_ARRAY_COUNT(gSystemFontUseStrings)); in SkFontMgr_New_Android()
546 gSystemFontUseStrings[custom->fSystemFontUse], in SkFontMgr_New_Android()
547 custom->fBasePath, in SkFontMgr_New_Android()
548 custom->fFontsXml, in SkFontMgr_New_Android()
549 custom->fFallbackFontsXml)); in SkFontMgr_New_Android()
551 return sk_make_sp<SkFontMgr_Android>(custom); in SkFontMgr_New_Android()