#include <font_vector.h>
Inheritance diagram for CL_Font_Vector:

Public Member Functions | |
Construction | |
| CL_Font_Vector () | |
| Constructs vector font. | |
| CL_Font_Vector (const CL_StringRef &typeface_name, int height) | |
| Constructs a Font Vector. | |
| CL_Font_Vector (const CL_StringRef &typeface_name, int height, CL_IODevice &file) | |
| Constructs a Font Vector. | |
| CL_Font_Vector (const CL_StringRef &typeface_name, int height, const CL_VirtualDirectory &directory) | |
| Constructs a Font Vector. | |
| CL_Font_Vector (const CL_FontDescription &desc) | |
| Constructs a Font Vector. | |
| CL_Font_Vector (const CL_FontDescription &desc, CL_IODevice &file) | |
| Constructs a Font Vector. | |
| CL_Font_Vector (const CL_FontDescription &desc, const CL_VirtualDirectory &directory) | |
| Constructs a Font Vector. | |
| ~CL_Font_Vector () | |
Attributes | |
| CL_FontProvider_Vector * | get_provider () const |
| Retrieves the font provider. | |
Operations | |
| int | get_glyph_count (const CL_StringRef &text) |
| Returns the amount of glyphs used by text. | |
| CL_GlyphPrimitivesArrayOutline | get_glyph_outline (int glyph) |
| Gets the glyph outline for a glyph. | |
| CL_GlyphPrimitivesArray | get_glyph_triangles (int glyph) |
| Gets the glyph triangles for a glyph. | |
| void | get_glyphs (const CL_StringRef &text, int *out_glyphs, float *out_interspacing_x, float *out_interspacing_y) |
| Find glyph indexes and inter-spacing (x,y) values for text. | |
| void | draw_glyphs (CL_GraphicContext &gc, float x, float y, int *glyphs, int length, bool filled=true, float *interspacing_x=0, float *interspacing_y=0, const CL_Colorf &color=CL_Colorf::white) |
| Draw glyphs on device context. | |
| CL_Sizef | get_glyphs_size (int *glyphs, int length) |
| Get glyphs size. | |
Attributes | |
| bool | is_null () |
| Is Null. | |
Operations | |
| void | draw_text (CL_GraphicContext &gc, int x, int y, const CL_StringRef &text, const CL_Colorf &color=CL_Colorf::white) |
| Print text on gc. | |
| void | draw_text (CL_GraphicContext &gc, float x, float y, const CL_StringRef &text, const CL_Colorf &color=CL_Colorf::white) |
| Print text on gc. | |
| void | draw_text (CL_GraphicContext &gc, const CL_Pointf &position, const CL_StringRef &text, const CL_Colorf &color=CL_Colorf::white) |
| Print text on gc. | |
| CL_Size | get_text_size (CL_GraphicContext &gc, const CL_StringRef &text) |
| Calculate size of text string. | |
| CL_FontMetrics | get_font_metrics (CL_GraphicContext &gc) |
| Retrieves font metrics description for the selected font. | |
| int | get_character_index (CL_GraphicContext &gc, const CL_String &text, const CL_Point &point) |
| Get the character index at a specified point. | |
|
|
Constructs vector font.
|
|
||||||||||||
|
Constructs a Font Vector.
|
|
||||||||||||||||
|
Constructs a Font Vector.
|
|
||||||||||||||||
|
Constructs a Font Vector.
|
|
|
Constructs a Font Vector.
|
|
||||||||||||
|
Constructs a Font Vector.
|
|
||||||||||||
|
Constructs a Font Vector.
|
|
|
|
|
||||||||||||||||||||||||||||||||||||||||
|
Draw glyphs on device context.
|
|
||||||||||||||||||||
|
Print text on gc. Multiline text (seperated by /n) is supported
|
|
||||||||||||||||||||||||
|
Print text on gc. Multiline text (seperated by /n) is supported
|
|
||||||||||||||||||||||||
|
Print text on gc. Multiline text (seperated by /n) is supported
|
|
||||||||||||||||
|
Get the character index at a specified point. Multiline text (seperated by /n) is supported
|
|
|
Retrieves font metrics description for the selected font.
|
|
|
Returns the amount of glyphs used by text.
|
|
|
Gets the glyph outline for a glyph.
|
|
|
Gets the glyph triangles for a glyph.
|
|
||||||||||||||||||||
|
Find glyph indexes and inter-spacing (x,y) values for text.
|
|
||||||||||||
|
Get glyphs size.
|
|
|
Retrieves the font provider.
Reimplemented from CL_Font. |
|
||||||||||||
|
Calculate size of text string.
Multiline text (seperated by /n) is supported |
|
|
Is Null.
|
1.4.6