Table of Contents

Interface IFontAtlas

Namespace
Icy.Rendering.Fonts
Assembly
IcyUI.dll

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

IReadOnlyDictionary<StyledGlyphDefinition, FontGlyph>

PageCount

Gets the number of texture pages.

int PageCount { get; }

Property Value

int

Textures

Gets the font textures.

IReadOnlyCollection<ITexture> Textures { get; }

Property Value

IReadOnlyCollection<ITexture>

Methods

GetGlyph(StyledGlyphDefinition)

Gets the glyph for a codepoint.

FontGlyph? GetGlyph(StyledGlyphDefinition glyphDefinition)

Parameters

glyphDefinition StyledGlyphDefinition

Info about glyph codepoint and style to get glyph details for.

Returns

FontGlyph?

The glyph if it exists; otherwise, null.

GetGlyphPage(in FontGlyph)

Gets a page for the glyph with the specified codepoint.

ITexture GetGlyphPage(in FontGlyph glyph)

Parameters

glyph FontGlyph

Glyph to get atlas page for.

Returns

ITexture

A texture page for the specified glyph.