Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


FontDefinition

Describes a VisualElement font.
Read time 1 minuteLast updated 6 days ago

Definition

public struct FontDefinition : IEquatable<FontDefinition>

Properties

Property

Description

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

Static Methods

Method

Description

FromFontCreate a FontDefinition from Font.
FromSDFFontCreate a FontDefinition from FontAsset.