Returns a version of the standard system font that contains monospaced digit glyphs.
- macOS 10.11+
The desired font size specified in points. If you specify
0or a negative number for this parameter, the method returns the system font at the default size.
The desired weight of font lines, specified as one of the constants in
A font object containing the system font with monospace digits at the specified size and weight.
The font returned by this method has monospaced digit glyphs. Glyphs for other characters and symbols may be wider or narrower than the monospaced characters. To ensure the font uses fixed spacing for all characters, apply the
NSFont attribute to the any strings you render.