UF_UGFONT_font_header_s (view source)
 
Defined in: uf_ugfont.h
 
Also known as:
 
Overview
The following structure defines the font header. These are
parameters that effect all of the characters in the font.


Data Members

version
int
This is the internal version number. It
identifies the format of the font binary file.
Currently this is version 1.

height
int
This is the height of the font. This value
is the maximum Y value a character in the font
may have.

width
int
This is the width of the font. This value is
the maximum X value a character in the font
may have.

base_height
int
This is the distance to the base line of the
characters. The base line is the bottom of
upper case characters.

waist_height
int
This is the distance to the waist line of the
characters. The waist line is the top of most
lower case characters.

width_type
int
This is the width type of the font:
1 = Fixed width, all characters have the same
width.
2 = Variable width, characters vary the width
based on their shape.
3 = Variable overlap font, the width of a
character varies by its shape and the shape
of characters around it.

overlap_1
int
The overlap 1 value

overlap_2
int
The overlap 2 value

overlap_3
int
The overlap 3 value

line_spacing
double
The line spacing of the font. This defines the
distance between two lines of characters.

char_spacing
double
The character spacing of the font. This defines
the distance between two characters on the same
line.

grid_spacing
double
The grid spacing. This value is computed when the
font was first created, and is the distance
assigned to one unit of the font height or
width.

number_of_chars
int
This is the total number of characters that are
defined in this font.