Interface IFontAtlas
Defines the interface for font texture atlases.
public interface IFontAtlas
- Extension Methods
Properties
Glyphs
Gets all glyphs stored in the atlas.
IReadOnlyDictionary<StyledGlyphDefinition, FontGlyph> Glyphs { get; }
Property Value
PageCount
Gets the number of texture pages.
int PageCount { get; }
Property Value
Textures
Gets the font textures.
IReadOnlyCollection<ITexture> Textures { get; }
Property Value
Methods
GetGlyph(StyledGlyphDefinition)
Gets the glyph for a codepoint.
FontGlyph? GetGlyph(StyledGlyphDefinition glyphDefinition)
Parameters
glyphDefinitionStyledGlyphDefinitionInfo about glyph codepoint and style to get glyph details for.
Returns
GetGlyphPage(in FontGlyph)
Gets a page for the glyph with the specified codepoint.
ITexture GetGlyphPage(in FontGlyph glyph)
Parameters
glyphFontGlyphGlyph to get atlas page for.
Returns
- ITexture
A texture page for the specified glyph.