All Classes |Grouped Classes |Index

Class CL_Font_System

Bitmap Font class. More...

Derived from:

public CL_Font

Derived by:

None

Group:

Font (Display)

#include <ClanLib/display.h>

Class Members:

Attributes:

is_null

Is Null.


Operations:

draw_text

Print text on gc.

draw_text_ellipsis

Print text on gc adding elipses if it does not fit.

get_text_size

Calculate size of text string.

get_glyph_size

Gets the size of a specified glyph.

get_font_metrics

Retrieves font metrics description for the selected font.

get_character_index

Get the character index at a specified point.


Construction:

CL_Font_System

Constructs a CL_Texture bitmap font.


Attributes:

get_provider

Retrieves the font provider.

get_glyph

Get a glyph. Returns NULL if the glyph was not found.


Operations:

set_texture_group

Set the texture font to use a specified texture group.

load_font

Load a system font (for use by insert_glyph to load text from a system font)

free_font

Free the system font when it is no longer required.

insert_glyph

Insert a glyph from a pixel buffer.

set_font_metrics

Set the font metrics for the bitmap font. This is done automatically if the font is loaded from the system font.

register_font

Registers a font for lookup when creating fonts.