Struct FontDefinition
Syntax
public struct FontDefinition : IEquatable<FontDefinition>
Properties
font
Font to use to display text. You cannot set this and fontAsset at the same time.
Declaration
public Font font { get; set; }
Property Value
fontAsset
SDF font to use to display text. You cannot set this and font at the same time.
Declaration
public FontAsset fontAsset { get; set; }
Property Value
Type |
Description |
FontAsset |
|
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Equals(FontDefinition)
Declaration
public bool Equals(FontDefinition other)
Parameters
Returns
FromFont(Font)
Create a FontDefinition from .
Declaration
public static FontDefinition FromFont(Font f)
Parameters
Type |
Name |
Description |
Font |
f |
The font to use to display text.
|
Returns
FromSDFFont(FontAsset)
Create a FontDefinition from .
Declaration
public static FontDefinition FromSDFFont(FontAsset f)
Parameters
Type |
Name |
Description |
FontAsset |
f |
The SDF font to use to display text.
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
ToString()
Declaration
public override string ToString()
Returns
Operators
Equality(FontDefinition, FontDefinition)
Declaration
public static bool operator ==(FontDefinition left, FontDefinition right)
Parameters
Returns
Inequality(FontDefinition, FontDefinition)
Declaration
public static bool operator !=(FontDefinition left, FontDefinition right)
Parameters
Returns