Originally Posted by
czar
One method would be to use a pre-rendered font and basically make a proper bitmap font engine.
You could use FontTool from Asphyre with Omega. It can export font to PNG image, creating .INC file with letter information. It would be a simple matter of displaying the proper letter and adding displacements from the table. Something like that:
Code:
// include INC file written by FontTool
{$include myfont.inc}
var
i, Index, MyX: Integer;
begin
MyX:= x; // (x, y) is where your text should be
for i:= 1 to Length(Text) do
begin
Index:= Byte(Text[i]) - Byte(FirstChar);
// draw INDEX pattern at (MyX, y)
Inc(MyX, LetterSizes[Index].x);
end;
end;
Bookmarks