[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Source position: PXL.Fonts.pas line 50
type TBitmapFont = class |
||
public |
||
const |
||
DefaultImageExtension = '.png' |
|
|
DefaultXMLExtension = '.xml' |
|
|
DefaultBinaryExtension = '.font' |
|
|
public |
||
type |
||
|
||
|
||
TTextEntryEvent = procedure( |
|
|
const Sender: TObject; |
||
const FontImage: TAtlasImage; |
||
const SourceRect: TIntRect; |
||
const DestRect: TFloatRect; |
||
const Color: TColorRect; |
||
const UserContext: Pointer |
||
); |
||
protected |
||
|
||
|
||
FEntries: array [0..MaxEntriesCount-1] of TLetterEntry; |
|
|
function LoadEntriesFromXMLStream(); |
|
|
function LoadEntriesFromXMLFile(); |
|
|
function LoadEntriesFromXMLAsset(); |
|
|
public |
||
constructor Create(); |
|
|
destructor Destroy; override; |
|
|
function DrawTextCustom(); |
|
|
procedure DrawText(); |
|
|
procedure DrawTextAligned(); |
|
|
procedure DrawTextCentered(); |
|
|
function TextExtent(); |
|
|
function TextWidth(); |
|
|
function TextHeight(); |
|
|
function TextExtentInt(); |
|
|
function TextWidthInt(); |
|
|
function TextHeightInt(); |
|
|
procedure DrawTextBox(); |
|
|
procedure TextRects(); |
|
|
function LoadFromBinaryStream(); |
|
|
function LoadFromBinaryFile(); |
|
|
function LoadFromBinaryAsset(); |
|
|
function LoadFromXMLStream(); |
|
|
function LoadFromXMLFile(); |
|
|
function LoadFromXMLAsset(); |
|
|
function LoadSystemFont(); |
|
|
property Device: TCustomDevice; [r] |
|
|
property SubscribedTextures: Boolean; [r] |
|
|
|
||
property Kernings: TKernings; [r] |
|
|
property Canvas: TCustomCanvas; [rw] |
|
|
property Image: TAtlasImage; [r] |
|
|
property StyleTags: TStyleTags; [rw] |
|
|
|
||
|
||
|
||
property WordSeparators: UniString; [rw] |
|
|
property ParagraphSeparators: UniString; [rw] |
|
|
property Scale: VectorFloat; [rw] |
|
|
property Interleave: VectorFloat; [rw] |
|
|
property SpaceWidth: VectorFloat; [rw] |
|
|
property VerticalSpace: VectorFloat; [rw] |
|
|
end; |
|
||
| | | ||
TObject |
| CT Web help |
| CodeTyphon Studio |