unit Font;

interface

uses
  QuadEngine;

type
  TFonts = class
  private
    const PATH = 'Data\Fonts\';
  public
    Console: IQuadFont;
    constructor Create(AQuadDevice: IQuadDevice);
    destructor Destroy; override;
  end;

var
  Fonts: TFonts;

implementation

{ TFont }
destructor TFonts.destroy;
begin
  Console := nil;
  inherited;
end;

constructor TFonts.Create(AQuadDevice: IQuadDevice);
begin
  AQuadDevice.CreateFont(Console);
  Console.LoadFromFile(PATH + 'console.png', PATH + 'console.qef');
//  Console.SetIsSmartColoring(True);
end;

end.
