Class TTextureFontData

DescriptionHierarchyInternal Classes and RecordsInternal TypesFieldsMethodsProperties

Unit

Declaration

type TTextureFontData = class(TObject)

Description

Data for a 2D font initialized from a FreeType font file, like ttf.

Hierarchy

  • TObject
  • TTextureFontData

Overview

Internal Classes and Records

Public TGlyph = class(TObject)

Internal Types

Public TGlyphDictionary = array [char] of TGlyph;

Methods

Public constructor Create(const URL: string; const ASize: Integer; const AnAntiAliased: boolean; const ACharacters: TSetOfChars = SimpleAsciiCharacters);
Public constructor CreateFromData(const AGlyphs: TGlyphDictionary; const AImage: TGrayscaleImage; const ASize: Integer; const AnAntiAliased: boolean);
Public destructor Destroy; override;
Public function Glyph(const C: char): TGlyph;

Properties

Public property AntiAliased: boolean read FAntiAliased;
Public property Size: Integer read FSize;
Public property Image: TGrayscaleImage read FImage;

Description

Internal Types

Public TGlyphDictionary = array [char] of TGlyph;
 

Methods

Public constructor Create(const URL: string; const ASize: Integer; const AnAntiAliased: boolean; const ACharacters: TSetOfChars = SimpleAsciiCharacters);

Create by reading a FreeType font file, like ttf.

Public 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.

Public destructor Destroy; override;
 
Public 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

Public property AntiAliased: boolean read FAntiAliased;
 
Public property Size: Integer read FSize;
 
Public property Image: TGrayscaleImage read FImage;
 

Generated by PasDoc 0.13.0 on 2014-04-30 22:06:45