Class TCastleFont

Unit

Declaration

type TCastleFont = class(TCastleAbstractFont)

Description

Font loaded from a font file, like ttf or otf. This class is typically used for outline (scalable, vector) fonts in ttf or otf formats. But it can really deal with any font supported by the FreeType library, even bitmap fonts, see the summary of font formats supported by FreeType.

This can load a font file, or it can use ready data in TTextureFontData. The latter allows to use this for fonts embedded in a Pascal source code, since our texture-font-to-pascal can convert a font file to a unit that defines ready TTextureFontData instance.

Source: fonts/castlefonts_font.inc (line 30).

Hierarchy


Generated by PasDoc 0.17.0.snapshot.