StaticbodyStaticcalloutStaticcaptionStaticcaption2StaticcustomA font present on the system at a given size
A string containing the name of the font to instantiate
The font size in points
An HSFont object
StaticfootnoteStaticheadlineStaticlargeStaticsubheadlineStaticsystemThe system font in a custom size
The font size in points
An HSFont object
The system font in a custom size with a choice of weights
The font size in points
The font weight as a string (e.g. "ultralight", "thin", "light", "regular", "medium", "semibold", "bold", "heavy", "black")
An HSFont object
StatictitleStatictitle2Statictitle3
This is a JavaScript object used to represent macOS fonts. It includes a variety of static methods that can instantiate the various font sizes commonly used with UI elements, and also includes static methods for instantiating the system font at various sizes/weights, or any custom font available on the system.