[][src]Module openpol::fontdat

font.dat data access operations.

font.dat file format

font.dat is an image13h-encoded image. It contains 3 rows of 13-pixel high characters. The rows start at the following pixels (all indices/offsets/positions are 0-based unless specified otherwise) and have the following number of characters:

  • The first row: line 8, column 7, 33 characters
  • The second row: line 32, column 8, 31 characters
  • The third row: line 56, column 7, 27 characters

The widths of the characters are hardcoded, CHARACTER_WIDTHS array is provided for convenience.

Structs

Fontdat

Constants

CHARACTERS

How many characters are there, in total.

CHARACTER_HEIGHT
CHARACTER_WIDTHS

The widths of all characters.

CHARACTER_X_POSITIONS

The x positions of the characters in the font image.

MINIMUM_IMAGE_DIMENSIONS

The width and height of the smallest image that's capable of storing a font.

ROWS

Where do rows start.

ROW_CHARACTERS

How many characters are there in every row.

ROW_OFFSETS

Where do rows start, (x, y).

Functions

character_rect