Class UIFontMetrics

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

    public class UIFontMetrics
    extends NSObject
    Since:
    Available in iOS 11.0 and later.
    • Constructor Detail

      • UIFontMetrics

        protected UIFontMetrics()
      • UIFontMetrics

        protected UIFontMetrics​(NSObject.Handle h,
                                long handle)
      • UIFontMetrics

        public UIFontMetrics​(java.lang.String textStyle)
    • Method Detail

      • getDefaultMetrics

        public static UIFontMetrics getDefaultMetrics()
      • initForTextStyle

        protected long initForTextStyle​(java.lang.String textStyle)
      • scaledFontForFont

        public UIFont scaledFontForFont​(UIFont font)
      • scaledFont

        public UIFont scaledFont​(UIFont font,
                                 double maximumPointSize)
      • scaledValueForValue

        public double scaledValueForValue​(double value)
      • scaledValue

        public double scaledValue​(double value,
                                  UITraitCollection traitCollection)
      • metricsForTextStyle

        public static UIFontMetrics metricsForTextStyle​(java.lang.String textStyle)