Logo Search packages:      
Sourcecode: freecraft version File versions  Download package

_color_font_ Struct Reference

#include <font.h>

List of all members.


Detailed Description

Color font definition.

#include "font.h"

typedef struct _color_font_ ColorFont;

Defines the fonts used in the FreeCraft engine. We support proportional multicolor fonts of 7 colors. The eighth color is transparent. (Currently the fonts aren't packed)

ColorFont::File

File containing the graphics for the font.

ColorFont::Width

Maximal width of a character in pixels.

ColorFont::Height

Height of all characters in pixels.

ColorFont::CharWidth[]

The width of each font glyph in pixels. The index 0 is the width of the SPACE (' ', 0x20).

ColorFont::Graphic

Contains the graphics of the font, loaded from ColorFont::File. Only 7 colors are supported.

Definition at line 88 of file font.h.


Public Attributes

char CharWidth [208]
 Max height of characters in file.
char * File
GraphicGraphic
 Real font width (starting with ' ').
int Height
 Max width of characters in file.
int Width
 File containing font data.

The documentation for this struct was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index