Simba Code:
{$I SRL/SRL.Simba}
{$I SRL/SRL/Misc/Debug.Simba}
Function Fonts: Boolean;
var
Font: TFont;
BMP: Integer;
begin
//Font.Style = [fsBold, fsItalic, fsUnderline, fsStrikeOut];
Font:= TFont.Create;
Font.Name:= 'Courier New';
Font.Style:= [fsBold, fsItalic];
Font.Size:= 12;
Font.Color:= clRed; //This is the line.. Yet it prints white fonts -__-
if (LoadSystemFont(Font, Font.Name) = False) then
begin
Font.Free;
FreeBitmap(BMP);
RaiseException(erCustomError, 'Invalid Font Name');
end;
BMP:= BitmapFromText('Testing..', Font.Name);
DebugBitmap(BMP);
Font.Free;
FreeBitmap(BMP);
end;
begin
SetupSRL;
Fonts;
end.