Interface for implementing a CL_Font target.
More...
#include <font_provider.h>
Interface for implementing a CL_Font target.
virtual CL_FontProvider::~CL_FontProvider |
( |
) | |
|
|
inlinevirtual |
virtual void CL_FontProvider::destroy |
( |
) | |
|
|
pure virtual |
Destroys the font provider.
Print text on gc.
Function does not need to support multiline text (CL_Font splits it)
- Parameters
-
gc | = Graphic Context |
x | = X position |
y | = Y position |
text | = The text to draw |
color | = The text color |
Get the character index at a specified point.
Function should support multiline text (seperated by /n)
- Parameters
-
gc | = The Graphic Context |
text | = The string |
point | = The point |
- Returns
- The character index. -1 = Not at specified point
Returns information about the current font.
Calculate size of text string.
Function does not need to support multiline text (CL_Font splits it)
The documentation for this class was generated from the following file: