Class TAdFontGenerator

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TAdFontGenerator = class(TAdPersistent)

Description

The base, abstract font generator class. TAdFontGenerator can be extended by other units in order to provide support of another font gernerator interface e.g. to use external libraries instead of the default vcl/lcl depenend font generator.

Hierarchy

Overview

Methods

Public procedure Generate(AData:Pointer; ASize:Cardinal; var ASizes:TAdCharSizes; var APatterns: TAdCharPatterns; ATexture:TAd2dBitmapTexture); virtual; abstract;
Public function IsValidData(AData:Pointer; ASize:Cardinal):boolean; virtual; abstract;

Description

Methods

Public procedure Generate(AData:Pointer; ASize:Cardinal; var ASizes:TAdCharSizes; var APatterns: TAdCharPatterns; ATexture:TAd2dBitmapTexture); virtual; abstract;

Generates the font data using the date given in "AData".

Parameters
AData
is a pointer to the data that represents font information
ASize
specifies the size of the data
ASizes
is used to store the size of every char in the font bitmap
APatterns
is a array of TAdRect that specifies the position of each letter in the bitmap
ATexture
contains the bitmap font data
Public function IsValidData(AData:Pointer; ASize:Cardinal):boolean; virtual; abstract;

Before calling the generate function of a font generator, the font manager will call the "IsValidData" of the class, to check whether this font data can be read by the generator.

SourceForge.net Logo


Generated by PasDoc 0.11.0 on 2008-12-31 14:31:59