All Classes |Grouped Classes |Index

Class CL_FontDescription

Font description class. More...

Derived from:

None

Derived by:

None

Group:

Font (Display)

#include <ClanLib/display.h>

Class Members:

Construction:

CL_FontDescription

Constructs a font description with default values.

create_null_object

Create null object.


Attributes:

Charset

is_null

Returns true if this object is invalid.

throw_if_null

Throw an exception if this object is invalid.

get_typeface_name

Returns the typeface name.

get_height

Returns the font height.

get_average_width

Returns the font average width.

get_escapement

Returns the font escapement.

get_orientation

Returns the font orientation.

get_weight

Returns the font weight.

get_italic

Returns the font italic setting.

get_underline

Returns the font underline setting.

get_strikeout

Returns the font strikeout setting.

get_fixed_pitch

Returns the font fixed pitch setting.

get_anti_alias

Get the font anti-alias setting (defaults to true)

get_subpixel

Get the font subpixel rendering setting (defaults to true)

get_charset

\biref Get the font charset

operator==

Returns true if the font is identical.


Operations:

clone

set_typeface_name

Sets the typeface name.

set_height

Sets the font height.

set_average_width

Sets the font average width.

set_escapement

Sets the font escapement.

set_orientation

Sets the font orientation.

set_weight

Sets the font weight.

set_italic

Sets the font italic setting.

set_underline

Sets the font underline setting.

set_strikeout

Sets the font strikeout setting.

set_fixed_pitch

Sets the font fixed pitch setting.

set_anti_alias

Sets the font anti-alias setting (defaults to true)

set_subpixel

Sets the font subpixel rendering setting (defaults to true)

set_charset

Sets the font charset (defaults to charset_default)

Detailed description:

This class allows you to setup a more advanced description when creating a font.