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 _fontAsset at the same time.
fontAssetSDF font to use to display text. You cannot set this and _font at the same time.

Static Methods

Method

Description

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