Table of Contents

Class Font

Namespace
LibGFX.Graphics
Assembly
LibGFX.dll
public class Font : IRendererResource
Inheritance
Font
Implements
Inherited Members

Constructors

Font()

public Font()

Fields

GLBO

public int GLBO

Field Value

int

VAO

public int VAO

Field Value

int

VBO

public int VBO

Field Value

int

Properties

Characters

public Dictionary<char, Character> Characters { get; set; }

Property Value

Dictionary<char, Character>

TextureHeight

public int TextureHeight { get; set; }

Property Value

int

TextureId

public int TextureId { get; set; }

Property Value

int

TextureWidth

public int TextureWidth { get; set; }

Property Value

int

Methods

Dispose(IRenderDevice)

public void Dispose(IRenderDevice renderer)

Parameters

renderer IRenderDevice

GetAlignmentOffset(string, FontAlignment, float)

public Vector2 GetAlignmentOffset(string text, FontAlignment alignment, float scale)

Parameters

text string
alignment FontAlignment
scale float

Returns

Vector2

GetGlyphUV(Character, int, int)

public static (float u0, float v0, float u1, float v1) GetGlyphUV(Character character, int textureWidth, int textureHeight)

Parameters

character Character
textureWidth int
textureHeight int

Returns

(float u0, float v0, float u1, float v1)

MeasureString(string, float)

public Vector2 MeasureString(string text, float scale)

Parameters

text string
scale float

Returns

Vector2