Class TTextureFontData
Unit
CastleTextureFontData
Declaration
type TTextureFontData = class(TObject)
Description
Data for a 2D font initialized from a FreeType font file, like ttf.
Hierarchy
Overview
Internal Classes and Records
Internal Types
Methods
Properties
Description
Internal Types
 |
TGlyphDictionary = array [char] of TGlyph; |
|
Methods
 |
constructor Create(const URL: string; const ASize: Integer; const AnAntiAliased: boolean; const ACharacters: TSetOfChars = SimpleAsciiCharacters); |
Create by reading a FreeType font file, like ttf.
|
 |
constructor CreateFromData(const AGlyphs: TGlyphDictionary; const AImage: TGrayscaleImage; const ASize: Integer; const AnAntiAliased: boolean); |
Create from a ready data for glyphs and image. Useful when font data is embedded inside the Pascal source code. AGlyphs contents, and AImage instance, become owned by this class.
|
 |
destructor Destroy; override; |
|
 |
function Glyph(const C: char): TGlyph; |
Read-only information about a glyph for given character. Nil if given glyph not loaded (because was not requested at constructor, or because it doesn't exist in the font).
|
Properties
 |
property AntiAliased: boolean read FAntiAliased; |
|
 |
property Size: Integer read FSize; |
|
Generated by PasDoc 0.13.0 on 2014-08-30 12:10:41
|