Interface IFont
Interface for a font object to save information needed for processing a font.
Namespace: Fusee.Engine.Common
Assembly: Fusee.Engine.Common.dll
Syntax
public interface IFont
Properties
CharInfo
Gets the character information.
Declaration
CharInfoStruct[] CharInfo { get; }
Property Value
Type | Description |
---|---|
CharInfoStruct[] | The character information. |
FontSize
Gets the font size.
Declaration
uint FontSize { get; }
Property Value
Type | Description |
---|---|
System.UInt32 | The font size. |
Remarks
The font size cannot be changed after loading a font.
Height
Gets the height of the texture atlas.
Declaration
int Height { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The height of the texture atlas. |
TexAtlas
Gets the texture atlas.
Declaration
ITexture TexAtlas { get; }
Property Value
Type | Description |
---|---|
ITexture | The texture atlas. |
Remarks
This texture contains all pre-rendered chars of a font in a specific font size.
UseKerning
Gets and sets a value indicating whether the kerning definition of a font should be used.
Declaration
bool UseKerning { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Width
Gets the width of the texture atlas.
Declaration
int Width { get; }
Property Value
Type | Description |
---|---|
System.Int32 | The width of the texture atlas. |