public static UIFont MediumWithSize(nfloat size) { MaterialFont.loadFontIfNeeded("Roboto-Medium"); var f = UIFont.FromName(name: "Roboto-Medium", size: size); if (f != null) { return(f); } return(MaterialFont.BoldSystemFontWithSize(size)); }
public static UIFont RegularWithSize(nfloat size) { MaterialFont.loadFontIfNeeded("Roboto-Regular"); var f = UIFont.FromName(name: "Roboto-Regular", size: size); if (f != null) { return(f); } return(MaterialFont.SystemFontWithSize(size)); }