Class UIFontMetrics

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

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

    • UIFontMetrics

      protected UIFontMetrics()
    • UIFontMetrics

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

      protected UIFontMetrics​(NSObject.SkipInit skipInit)
    • UIFontMetrics

      public UIFontMetrics​(String textStyle)
  • Method Details

    • getDefaultMetrics

      public static UIFontMetrics getDefaultMetrics()
    • initForTextStyle

      protected long initForTextStyle​(String textStyle)
    • scaledFontForFont

      public UIFont scaledFontForFont​(UIFont font)
    • scaledFont

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

      public UIFont scaledFont​(UIFont font, UITraitCollection traitCollection)
    • scaledFont

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

      public double scaledValueForValue​(double value)
    • scaledValue

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

      public static UIFontMetrics metricsForTextStyle​(String textStyle)