Unit Font

From Ultibo.org
Revision as of 04:41, 28 July 2016 by Ultibo (Talk | contribs)

Jump to: navigation, search

Return to Unit Reference


Description


To be documented

Constants


To be documented

Type definitions


To be documented

Public variables


To be documented

Function declarations



Initialization functions

[Expand]
procedure FontInit;
Description: To be documented


Font functions

[Expand]
function FontLoad(Header:PFontHeader; Data:PFontData; Size:LongWord):TFontHandle;
Description: Load a Font from a font data block and add to the Font table


[Expand]
function FontLoadEx(Header:PFontHeader; Data:PFontData; Unicode:PFontUnicode; Size:LongWord; Properties:PFontProperties):TFontHandle;
Description: Load a Font from a font data block and add to the Font table


[Expand]
function FontUnload(Handle:TFontHandle):LongWord;
Description: To be documented


[Expand]
function FontGetName(Handle:TFontHandle):String;
Description: To be documented


[Expand]
function FontGetDescription(Handle:TFontHandle):String;
Description: To be documented


[Expand]
function FontGetWidth(Handle:TFontHandle):LongWord;
Description: To be documented


[Expand]
function FontGetHeight(Handle:TFontHandle):LongWord;
Description: To be documented


[Expand]
function FontGetProperties(Handle:TFontHandle; Properties:PFontProperties):LongWord;
Description: To be documented


[Expand]
function FontCharWidth(Handle:TFontHandle; Character:Word):LongWord;
Description: To be documented


[Expand]
function FontCharHeight(Handle:TFontHandle; Character:Word):LongWord;
Description: To be documented


[Expand]
function FontTextWidth(Handle:TFontHandle; const Text:String):LongWord;
Description: To be documented


[Expand]
function FontTextHeight(Handle:TFontHandle; const Text:String):LongWord;
Description: To be documented


[Expand]
function FontFindByName(const Name:String):TFontHandle;
Description: To be documented


[Expand]
function FontFindByDescription(const Description:String):TFontHandle; 
Description: To be documented


[Expand]
function FontEnumerate(Callback:TFontEnumerate; Data:Pointer):LongWord;
Description: To be documented


PSF font functions

[Expand]
function PSFFontLoad(const FileName:String):TFontHandle;
Description: To be documented


[Expand]
function PSFFontLoadEx(Data:Pointer;Size:LongWord):TFontHandle;
Description: To be documented


Font helper functions

[Expand]
function FontGetCount:LongWord; inline;
Description: Get the current font count


[Expand]
function FontGetDefault:TFontHandle; inline;
Description: Get the current default font


[Expand]
function FontSetDefault(Handle:TFontHandle):LongWord;
Description: Set the current default font


[Expand]
function FontCheck(Font:PFontEntry):PFontEntry;
Description: Check if the supplied Font is in the Font table



Return to Unit Reference