CL_Font_Description::CL_Font_Description
Syntax
CL_Font_Description(
CL_SurfaceProvider *p,
int x,
int y,
int *tcols,
int num_tcols,
int spacelen,
int subtract_width,
const char *letters);
Parameters
p | - | Image which contain the font letters. |
x | - | Start x coordinate on top-left most font letter. |
y | - | Start y coordinate on top-left most font letter. |
tcols | - | Array of colors to be transparent. |
num_tcols | - | Number of elements in the tcols array. |
spacelen | - | Pixel width of the space character. |
subtract_width | - | Width to subtract from each letter when drawing the font (aka. font kerning). |
letters | - | String containing all the letters listed in the image file. Must be ordered in the same way as in the image file. |
Description
This constructs a font description using the old font method. It
is obsolete and only provided for backward compatibility. Please
don't use it.
Back to index
|