FontDefinition

struct in UnityEngine.UIElements

/

Implemented in:UnityEngine.UIElementsModule

Description

Describes a VisualElement font.

Properties

font Font to use to display text. You cannot set this and FontDefinition.fontAsset at the same time.
fontAsset SDF font to use to display text. You cannot set this and FontDefinition.font at the same time.

Static Methods

FromFont Create a FontDefinition from Font.
FromSDFFont Create a FontDefinition from FontAsset.

Did you find this page useful? Please give it a rating: