<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSFont/screenFont(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFont(im)screenFontWithRenderingMode:"
  },
  "title" : "screenFont(with:)"
}
-->

# screenFont(with:)

Returns a bitmapped screen font, when sent to a font object representing a scalable PostScript font, with the specified rendering mode, matching the receiver in typeface and matrix (or size), or `nil` if such a font can’t be found.

```
func screenFont(with renderingMode: NSFontRenderingMode) -> NSFont
```

## Discussion

For valid rendering modes, see [`NSFontRenderingMode`](/documentation/AppKit/NSFontRenderingMode).

Screen fonts are for direct use with the window server only. Never use them with Application Kit objects, such as in `setFont:` methods. Internally, the Application Kit automatically uses the corresponding screen font for a font object as long as the view is not rotated or scaled.

## See Also

[`screenFont`](/documentation/AppKit/NSFont/screen)

The bitmapped screen font for the current font.

[`printerFont`](/documentation/AppKit/NSFont/printer)

The scalable PostScript font corresponding to current font.



---

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)