Class TCastleBitmapFont
Unit
Declaration
type TCastleBitmapFont = class(TCastleAbstractFont)
Description
Bitmap font, where each character is just drawn (and may be multi-color) on a raster image. See https://en.wikipedia.org/wiki/Computer_font about "bitmap font" or (less common name, but more valid) "raster font".
By default this class makes some assumptions about how the font image looks like: the characters are placed on the image in their Unicode order, starting from space in the upper-left corner. TODO: Use OnGlyph event to customize it.
Examples of such fonts:
See examples/fonts/data/sonic_asalga_0.png in CGE examples.
From OpenGameArt: http://opengameart.org/content/sonic-font, http://opengameart.org/content/null-terminator .
From itch.io: https://itch.io/game-assets/tag-bitmap-font .
Source: fonts/castlefonts_bitmapfont.inc (line 37).
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleAbstractFont
- TCastleBitmapFont
Generated by PasDoc 0.17.0.snapshot.