Unit CastleTextureFontData
Description
Data for a 2D font initialized from a FreeType font file (TTextureFontData).
Source: src/fonts/castletexturefontdata.pas (line 17).
Uses
- Generics.Collections
- Generics.Defaults
- CastleVectors
- CastleUnicode
- CastleStringUtils
- CastleImages
- CastleInternalFreeType
- CastleRectangles
Overview
Classes, Interfaces, Objects and Records
| Name | Description |
|---|---|
Class TTextureFontDataInformation |
Additional metadata about TTextureFontData, used when embedding and recreating TTextureFontData instances. |
Class TTextureFontData |
Data for a 2D font initialized from a FreeType font file, like ttf. |
Functions and Procedures
procedure RegisterEmbeddedFont(const FontData: TTextureFontData; const FontUrl: String); |
function GetEmbeddedFont(const FontUrl: String): TTextureFontData; |
Types
EFreeTypeLibraryNotFound = CastleInternalFreeType.EFreeTypeLibraryNotFound; |
Constants
LoadFont_FileFilters =
'All Files|*|' +
'*All Font Files|*.ttf;*.otf;*.woff;*.woff2|' +
'TrueType Fonts (*.ttf)|*.ttf|' +
'OpenType Fonts (*.otf)|*.otf|' +
'WOFF Fonts (*.woff,*.woff2)|*.woff;*.woff2'; |
Description
Functions and Procedures
procedure RegisterEmbeddedFont(const FontData: TTextureFontData; const FontUrl: String); |
|
TCastleFont.Load should use a given TTextureFontData instance instead of loading from given URL. This allows to make embedded fonts work seamlessly. |
function GetEmbeddedFont(const FontUrl: String): TTextureFontData; |
|
Is any font registered for given URL. |
Types
EFreeTypeLibraryNotFound = CastleInternalFreeType.EFreeTypeLibraryNotFound; |
|
Raised by TTextureFontData.Create or TCastleFont.Load when the freetype library cannot be found, and thus font files cannot be read. |
Constants
LoadFont_FileFilters =
'All Files|*|' +
'*All Font Files|*.ttf;*.otf;*.woff;*.woff2|' +
'TrueType Fonts (*.ttf)|*.ttf|' +
'OpenType Fonts (*.otf)|*.otf|' +
'WOFF Fonts (*.woff,*.woff2)|*.woff;*.woff2'; |
|
Supported font file formats. Use these filters with LCL file dialog (easily set by FileFiltersToDialog) or TCastleWindow.FileDialog. |
Generated by PasDoc 0.17.0.snapshot.