#include <font_provider.h>
Public Member Functions | |
Construction | |
| virtual | ~CL_FontProvider () |
Attributes | |
| virtual CL_FontMetrics | get_font_metrics (CL_GraphicContext &gc)=0 |
| Returns information about the current font. | |
Operations | |
| virtual void | destroy ()=0 |
| Destroys the font provider. | |
| virtual void | draw_text (CL_GraphicContext &gc, float x, float y, const CL_StringRef &text, const CL_Colorf &color)=0 |
| Print text on gc. | |
| virtual CL_Size | get_text_size (CL_GraphicContext &gc, const CL_StringRef &text)=0 |
| Calculate size of text string. | |
| virtual int | get_character_index (CL_GraphicContext &gc, const CL_String &text, const CL_Point &point)=0 |
| Get the character index at a specified point. | |
|
|
|
|
|
Destroys the font provider.
|
|
||||||||||||||||||||||||
|
Print text on gc. Function does not need to support multiline text (CL_Font splits it)
|
|
||||||||||||||||
|
Get the character index at a specified point. Function should support multiline text (seperated by /n)
|
|
|
Returns information about the current font.
|
|
||||||||||||
|
Calculate size of text string. Function does not need to support multiline text (CL_Font splits it) |
1.4.6