Lines Matching defs:custom
291 SkFontMgr_Android(const SkFontMgr_Android_CustomFonts* custom) {
293 if (custom && SkFontMgr_Android_CustomFonts::kPreferSystem != custom->fSystemFontUse) {
294 SkString base(custom->fBasePath);
296 families, base, custom->fFontsXml, custom->fFallbackFontsXml);
298 if (!custom ||
299 (custom && SkFontMgr_Android_CustomFonts::kOnlyCustom != custom->fSystemFontUse))
303 if (custom && SkFontMgr_Android_CustomFonts::kPreferSystem == custom->fSystemFontUse) {
304 SkString base(custom->fBasePath);
306 families, base, custom->fFontsXml, custom->fFallbackFontsXml);
308 this->buildNameToFamilyMap(families, custom ? custom->fIsolated : false);
558 sk_sp<SkFontMgr> SkFontMgr_New_Android(const SkFontMgr_Android_CustomFonts* custom) {
559 if (custom) {
560 SkASSERT(0 <= custom->fSystemFontUse);
561 SkASSERT(custom->fSystemFontUse < SK_ARRAY_COUNT(gSystemFontUseStrings));
563 gSystemFontUseStrings[custom->fSystemFontUse],
564 custom->fBasePath,
565 custom->fFontsXml,
566 custom->fFallbackFontsXml);
568 return sk_make_sp<SkFontMgr_Android>(custom);