Description | Hierarchy | Fields | Methods | Properties |
type TGUIFont = class(TReferenceCounted)
Font interface.
![]() |
function GetCharacterFromPos(const Text: StringType; XPos: LongInt): LongInt; inline; |
![]() |
function GetKerningWidth(Letter: WideChar = #0; PreviousLetter: WideChar = #0): LongInt; inline; |
![]() |
function GetSize(const Text: StringType): TSize; inline; |
![]() |
procedure Draw(const Text: StringType; const Pos: TRect; Color: TARGBColor; HCenter: Boolean = False; VCenter: Boolean = False); overload; inline; |
![]() |
procedure Draw(const Text: StringType; const Pos: TRect; Color: TARGBColor; HCenter, VCenter: Boolean; const ClipRect: TRect); overload; inline; |
![]() |
procedure SetInvisibleCharacters(const Chars: StringType); inline; |
![]() |
property FontType: TGUIFontType read GetType; |
![]() |
property KerningHeight: LongInt read GetKerningHeight write SetKerningHeight; |
![]() |
property KerningWidth: LongInt read GetGlobalKerningWidth write SetKerningWidth; |
![]() |
function GetCharacterFromPos(const Text: StringType; XPos: LongInt): LongInt; inline; |
Calculates the index of the character in the text which is on a specific position. Parameters
ReturnsThe zero based index of the character in the text, and -1 if no no character is on this position. (=the text is too short). |
![]() |
function GetSize(const Text: StringType): TSize; inline; |
Calculates the width and height of a given string of text. ReturnsWidth and height of the area covered by the text if it would be drawn. |
![]() |
procedure Draw(const Text: StringType; const Pos: TRect; Color: TARGBColor; HCenter: Boolean = False; VCenter: Boolean = False); overload; inline; |
Draws some text. Parameters
|
![]() |
procedure Draw(const Text: StringType; const Pos: TRect; Color: TARGBColor; HCenter, VCenter: Boolean; const ClipRect: TRect); overload; inline; |
Draws some text and clips it to a specified rectangle. Parameters
|
![]() |
procedure SetInvisibleCharacters(const Chars: StringType); inline; |
Defines which characters should not be drawn by the font. Parameters
|
![]() |
property FontType: TGUIFontType read GetType; |
The font type. |
![]() |
property KerningHeight: LongInt read GetKerningHeight write SetKerningHeight; |
The global kerning height (vertical distance between characters). |
![]() |
property KerningWidth: LongInt read GetGlobalKerningWidth write SetKerningWidth; |
The global kerning width (horizontal distance between characters). |