DEATHSHADOW'S
MADNESS
Madness and You, Perfect together!

  1. Top of Page
  2. Main Menu
  3. Page Content
  4. Page Extras
  5. Bottom of Page

Type tglKernedHeader

INTERNAL

This element is used internally by glKernedFont, and should not be modified or used by the end user. Elements marked internal are subject to change without notice or concern for backwards compatibility.

Declaration


type
  tglKernedHeader=record
    formatRevision,
    bufferWidth,bufferHeight,
    charWidth,charHeight:dword;
    kerningTable:tglKernedTable;  
    reserved:array[0..127] of byte;
  end;

Purpose

A table structure that each font uses to store the kerning information for the accepted character set. Currently restricted to characters 32..127, this will likely range from 0..255 in future versions. As such you should NOT rely on the first index of this array being index 32.

Fields

formatRevision : dword;

Currently the only valid value is zero, which indicates that the font contains the standard header format, followed by our custom RLE encoded data stream.

bufferWidth, bufferHeight : dword;

The width and height of the buffer our datastream decodes to of course!

charWidth, charHeight : dword;

The width and height of each character in pixels in the buffer

kerningTable : tglKernedTable

A table of kerning values for the font

reserved : array [0..127] of byte;

Just a little space for future expansion

  1. Top of Page
  2. Main Menu
  3. Page Content
  4. Page Extras
  5. Bottom of Page