BitmapFontDataPage

ceramic.BitmapFontDataPage (Class)

Information about a single texture page in a multi-page bitmap font.

Large bitmap fonts may require multiple texture pages to accommodate all characters. Each page is a separate texture file containing a subset of the font's glyphs. Characters reference their page by ID.

See: BitmapFontData.pages Where page data is stored, BitmapFontCharacter.page References page by ID

Instance Members

id: Int

Unique identifier of this texture page. Referenced by characters to indicate which texture contains their glyph. Typically starts at 0 and increments for each additional page.


file: String

Path to the texture file containing the glyphs. Can be relative (resolved using BitmapFontData.path) or absolute. Common formats: PNG, TGA, or other image formats supported by the engine.


new(id: Int, file: String): Void
Name Type Description
id Int * Unique identifier of this texture page. Referenced by characters to indicate which texture contains their glyph. Typically starts at 0 and increments for each additional page.
file String * Path to the texture file containing the glyphs. Can be relative (resolved using BitmapFontData.path) or absolute. Common formats: PNG, TGA, or other image formats supported by the engine.

Metadata

Name Parameters
:structInit -