示例#1
0
        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));
        }
示例#2
0
        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));
        }