Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

CL_Res_Font Class Reference

res_type: fontres_option: tga - Interpret this file as a targa image.res_option: pcx - Interpret this file as a pcx image.res_option: pos=(<xpos>, <ypos>) - Font position in image source.res_option: spacelen=<width> - Pixel width of the space character.res_option: tcol=(<col1>, <col2>, ...) - Transparent colors in the font.res_option: letters= - The list of letters in the font.res_desc: The font resource type is used by the CL_Font class to load a fontres_desc: from a datafile.
res_desc: The datafile compiler creates the font by cut each letter out of theres_desc: specified image file. It uses the last three colors in the palette tores_desc: do that. Color index 255 is used to find the height, 254 is used tores_desc: seperate the letters (find the width), and 253 is used to break theres_desc: line.
res_desc: For an example, have a look on the Pacman demo application. More...

#include <resourcetype_font.h>

Inheritance diagram for CL_Res_Font:

Inheritance graph
[legend]
Collaboration diagram for CL_Res_Font:

Collaboration graph
[legend]
List of all members.

Public Methods

 CL_Res_Font ()

Private Methods

virtual CL_Resourcecreate_from_location (std::string name, std::string location, CL_ResourceOptions *options, CL_ResourceManager *parent)
virtual CL_Resourcecreate_from_serialization (std::string name, CL_ResourceManager *parent)

Private Attributes

friend CL_ResourceManager

Detailed Description

res_type: fontres_option: tga - Interpret this file as a targa image.res_option: pcx - Interpret this file as a pcx image.res_option: pos=(<xpos>, <ypos>) - Font position in image source.res_option: spacelen=<width> - Pixel width of the space character.res_option: tcol=(<col1>, <col2>, ...) - Transparent colors in the font.res_option: letters= - The list of letters in the font.res_desc: The font resource type is used by the CL_Font class to load a fontres_desc: from a datafile.
res_desc: The datafile compiler creates the font by cut each letter out of theres_desc: specified image file. It uses the last three colors in the palette tores_desc: do that. Color index 255 is used to find the height, 254 is used tores_desc: seperate the letters (find the width), and 253 is used to break theres_desc: line.
res_desc: For an example, have a look on the Pacman demo application.

Definition at line 15 of file resourcetype_font.h.


Constructor & Destructor Documentation

CL_Res_Font::CL_Res_Font ( )
 


Member Function Documentation

virtual CL_Resource* CL_Res_Font::create_from_location ( std::string name,
std::string location,
CL_ResourceOptions * options,
CL_ResourceManager * parent ) [private, virtual]
 

Reimplemented from CL_ResourceType.

virtual CL_Resource* CL_Res_Font::create_from_serialization ( std::string name,
CL_ResourceManager * parent ) [private, virtual]
 

Reimplemented from CL_ResourceType.


Member Data Documentation

friend CL_Res_Font::CL_ResourceManager [private]
 

Definition at line 55 of file resourcetype_font.h.


The documentation for this class was generated from the following file:
Generated at Wed Apr 4 19:57:20 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001