Class UIFont

  • All Implemented Interfaces:
    NSObjectProtocol, org.robovm.objc.ObjCProtocol

    public class UIFont
    extends NSObject
    Since:
    Available in iOS 2.0 and later.
    • Method Detail

      • getFamilyNames

        public static java.util.List<java.lang.String> getFamilyNames()
      • getFamilyName

        public java.lang.String getFamilyName()
      • getFontName

        public java.lang.String getFontName()
      • getPointSize

        public double getPointSize()
      • getAscender

        public double getAscender()
      • getDescender

        public double getDescender()
      • getCapHeight

        public double getCapHeight()
      • getXHeight

        public double getXHeight()
      • getLineHeight

        public double getLineHeight()
        Since:
        Available in iOS 4.0 and later.
      • getLeading

        public double getLeading()
      • getFontDescriptor

        public UIFontDescriptor getFontDescriptor()
        Since:
        Available in iOS 7.0 and later.
      • getLabelFontSize

        public static double getLabelFontSize()
      • getButtonFontSize

        public static double getButtonFontSize()
      • getSmallSystemFontSize

        public static double getSmallSystemFontSize()
      • getSystemFontSize

        public static double getSystemFontSize()
      • getSystemFont

        public static UIFont getSystemFont​(double fontSize,
                                           UIFontWeight weight)
        Since:
        Available in iOS 8.2 and later.
      • newWithSize

        public UIFont newWithSize​(double fontSize)
      • getPreferredFont

        public static UIFont getPreferredFont​(UIFontTextStyle style)
        Since:
        Available in iOS 7.0 and later.
      • getFont

        public static UIFont getFont​(java.lang.String fontName,
                                     double fontSize)
      • getFontNamesForFamilyName

        public static java.util.List<java.lang.String> getFontNamesForFamilyName​(java.lang.String familyName)
      • getSystemFont

        public static UIFont getSystemFont​(double fontSize)
      • getBoldSystemFont

        public static UIFont getBoldSystemFont​(double fontSize)
      • getItalicSystemFont

        public static UIFont getItalicSystemFont​(double fontSize)
      • getSystemFont

        public static UIFont getSystemFont​(double fontSize,
                                           double weight)
        Since:
        Available in iOS 8.2 and later.
      • getMonospacedDigitSystemFont

        public static UIFont getMonospacedDigitSystemFont​(double fontSize,
                                                          double weight)
        Since:
        Available in iOS 9.0 and later.
      • getFont

        public static UIFont getFont​(UIFontDescriptor descriptor,
                                     double pointSize)
        Since:
        Available in iOS 7.0 and later.