Omegafont
Properties
Name
The Name of your Omegafont.
Omegascreen
The Omegascreen that will display your text.
Tag
This one is free for your own use and does nothing.
Methods
OmegaFont1.CreateFont('verdanda',12,
[fsbold]);
This creates
a verdana font with size 12 and it is bold.
omegafont1.color:=OmegaColor(255,255,255,255);
You can set the RGB-value and Alpha-value of your font.
OmegaFont1.BeginFont;
You need Beginfont to start displaying the text.
OmegaFont1.Print(10,10,'FPS:'+floattostr(omegatimer1.framespersec));
This will display the Framerate of the Omegatimer on the Omegascreen.
The values are (x,y,text)
OmegaFont1.EndFont;
This will end the displaying of the text.
OmegaFont1. TextHeight(Text: string);
This returns the height in pixels of the text that you send it.
OmegaFont1.TextWidth(Text: String);
This returns the width in pixels of the text you send it.
Back to the Index