Class Atlas
The generated atlas data.
Namespace: Evergine.Framework.Assets.AssetParts.Fonts
Assembly: Evergine.Framework.dll
Syntax
public class Atlas
Properties
distanceRange
Gets or sets the signed distance field range in pixels.
Declaration
public int distanceRange { get; set; }
Property Value
Type | Description |
---|---|
int |
height
Gets or sets the height of the atlas.
Declaration
public int height { get; set; }
Property Value
Type | Description |
---|---|
int |
size
Gets or sets the atlas dimensions.
Declaration
public float size { get; set; }
Property Value
Type | Description |
---|---|
float |
type
Gets or sets the atlas font type (values: hard, soft, sdf, psdf, msdf, mtsdf).
Declaration
public string type { get; set; }
Property Value
Type | Description |
---|---|
string |
width
Gets or sets the width of the atlas.
Declaration
public int width { get; set; }
Property Value
Type | Description |
---|---|
int |
yOrigin
Gets or sets the Y origin.
Declaration
public string yOrigin { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
Read(BinaryReader)
Reads the atlas from a binary file.
Declaration
public static Atlas Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
Atlas | The read atlas object. |
Write(BinaryWriter)
Writes atlas data into a binary file.
Declaration
public void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The binary writer. |