Пример #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));
        }