Struct Text2DStyleNativeFont
Add this component to an entity with a Text2DRenderer component to specify a native font.
Namespace: Unity.Tiny.Text
Syntax
public struct Text2DStyleNativeFont : IComponentData
Fields
font
The Font entity on which to look for a {@link NativeFont} component to use.
Declaration
[EntityWithComponents(new Type[]{typeof(NativeFont)})]
public Entity font
Field Value
Type | Description |
---|---|
Entity |
italic
If true, adds the italic attribute to the text.
Declaration
public bool italic
Field Value
Type | Description |
---|---|
System.Boolean |
weight
Sets the font weight. A value of 400 is normal weight. A value of 700 is bold. Higher values make characters thicker. Lower values make them thinner.
Declaration
public int weight
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
Default
Declaration
public static Text2DStyleNativeFont Default { get; }
Property Value
Type | Description |
---|---|
Text2DStyleNativeFont |