![]() | |
![]() | ![]() |
Entire Class Index | Main Class Index | Cross Index | Global Index |
Font provider interface.
Contained in: global
Derived from:
none
Derived by:
none
Group: Display (Fonts)
#include <ClanLib/display.h>
public function member index: |
||
Construction: |
||
CL_Font_Description | (CL_InputSource* input); | |
CL_Font_Description | (CL_SurfaceProvider* p, int x, int y, int* tcols, int num_tcols, int spacelen, int subtract_width, const std::string& letters); | |
CL_Font_Description | (CL_SurfaceProvider* source, float trans_limit, int space_len, int subtract_width, const std::string& letters); | |
CL_Font_Description | (std::vector<CL_SurfaceProvider*> letter_provider, int space_len, int subtract_width, std::string letters); | |
~CL_Font_Description | (); | |
Operations: |
||
void | lock | (); |
void | unlock | (); |
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.
source - Image which contain the font letters.
trans_limit - The maximum amount of alpha allowed before a pixel is no longer considered transparent.
space_len - 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.
letters - A vector array of pointers to the letters themselves
space_len - 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.