<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIFont/init(descriptor:size:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIFont(cm)fontWithDescriptor:size:"
  },
  "title" : "init(descriptor:size:)"
}
-->

# init(descriptor:size:)

Returns a font that matches the specified font descriptor.

```
init(descriptor: UIFontDescriptor, size pointSize: CGFloat)
```

## Parameters

`descriptor`

The font descriptor to match.

`pointSize`

The size in points to which the font is scaled. If greater than 0.0, it has precedence over `UIFontDescriptorSizeAttribute` in `descriptor`.

## Return Value

A font object for the specified descriptor and size.

## Discussion

In most cases, you can simply use [`init(name:size:)`](/documentation/UIKit/UIFont/init(name:size:)) to create standard scaled fonts.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)