FontDefinition
Describes a VisualElement font.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Implements: IEquatable<FontDefinition>
public struct FontDefinition : IEquatable<FontDefinition>
Properties
Property | Description |
|---|---|
| font | Font to use to display text. You cannot set this and _fontAsset at the same time. |
| fontAsset | SDF font to use to display text. You cannot set this and _font at the same time. |
Static Methods
Method | Description |
|---|---|
| FromFont | Create a FontDefinition from Font. |
| FromSDFFont | Create a FontDefinition from FontAsset. |