Previous: 4.53.2. ogFont Unit Objects To the Table of Contents Next: 4.53.2.1.1. centerTextX()
4.53.2. ogFont Unit Objects Table of Contents 4.53.2.1.1. centerTextX()

- 4.53.2.1. -
Table of Contents
4. Standard Units
4.53. ogFont - BitFont support for ObjGfx 4.0
4.53.2. ogFont Unit Objects
4.53.2.1. ogBitFont object


4.53.2.1. ogBitFont object

Targets: MS-DOS, Win32 console


ogFont Unit

type
  ogBitFont = object
   public
    procedure   centerTextX(var buf:ogSurface; y:int32; const textString:string);
    destructor  done;
    function    getHeight:uInt32;
    function    getWidth:uInt32;
    constructor init;
    procedure   justifyText(var buf:ogSurface; horiz, vert:uInt8; const textString:string);
    function    load(const fontFile:string):boolean;
    function    loadFromOffset(const fontFile:string; offset:uInt32):boolean;
    procedure   putChar(var buf:ogSurface; x, y:int32; const ch:char);
    procedure   putString(var buf:ogSurface; x, y:int32; const textString:string);
    function    save(const fontFile:string):boolean;
    function    saveToOffset(const fontFile:string; offset:int32):boolean;
    procedure   setBGColor(red, green, blue, alpha:uInt8);
    procedure   setFGColor(red, green, blue, alpha:uInt8);
    function    textHeight(const textString:string):uInt32;    
    function    textWidth(const textString:string):uInt32;
  end;



Previous: 4.53.2. ogFont Unit Objects To the Table of Contents Next: 4.53.2.1.1. centerTextX()
4.53.2. ogFont Unit Objects Table of Contents 4.53.2.1.1. centerTextX()

- 4.53.2.1. -