Home |All Classes |Grouped Classes |Index |Search

Class CL_FontMetrics

Font metrics class. More...

Derived from:

None

Derived by:

None

Group:

Display (Display)

#include <ClanLib/display.h>

Class Members:

Construction:

CL_FontMetrics

Constructs a font metrics description.


Attributes:

get_height

Returns the height of the font.

get_ascent

Returns the font ascender.

get_descent

Returns the font descender.

get_internal_leading

Returns the amount of leading (space) inside the bounds set by the get_height() function.

get_external_leading

Returns the amount of extra leading (space) that the application adds between rows.

get_average_character_width

Returns the average width of characters in the font.

get_max_character_width

Returns the width of the widest character in the font.

get_weight

Returns the weight of the font.

get_overhang

Returns the extra width per string that may be added to some synthesized fonts.

get_digitized_aspect_x

Returns the horizontal aspect of the device for which the font was designed.

get_digitized_aspect_y

Returns the vertical aspect of the device for which the font was designed.

get_first_char

Returns the value of the first character defined in the font.

get_last_char

Returns the value of the last character defined in the font.

get_default_char

Returns the value of the character to be substituted for characters not in the font.

get_word_break_char

Returns the value of the character that will be used to define word breaks for text justification.

is_italic

Returns true if the font is italic.

is_underlined

Returns true if the font is underlined.

is_struck_out

Returns true if the font is struck out.

is_fixed_pitch

Returns true if the font is a mono space font.