Assets.FontSettings

Description: Defines a set of font settings that are used to modify the appearance of text that is drawn via Text2d's.

Constructors

FontSettings ()
Creates a new instance of the FontSettings object with the following default values. FontSize: 10px FontFamily: Times New Roman

Fields

FontSize: string
Gets or sets the current font size. Values can be things such as 20px.

FontFamily: Assets.FontFamily
Gets or sets the font family.

FontVariant: Assets.FontVariant
Gets or sets the font variant.

FontWeight: string
Gets or sets the current font weight.

FontStyle: Assets.FontStyle
Gets or sets the current font style.

Examples

There's currently no example available for this page. If you'd like to suggest one send me an containing a description, code, and link to the page for the suggested example. As a thanks I'll associate the code snippet with your name directly below the example if approved.