#include <font_description.h>
Construction | |
| CL_FontDescription () | |
| Constructs a font description with default values. | |
| CL_FontDescription (const CL_FontDescription ©) | |
| Constructs a FontDescription. | |
| virtual | ~CL_FontDescription () |
| static CL_FontDescription | create_null_object () |
| Create null object. | |
Public Member Functions | |
Attributes | |
| bool | is_null () const |
| Is Null. | |
| const CL_String & | get_typeface_name () const |
| Returns the typeface name. | |
| int | get_height () const |
| Returns the font height. | |
| int | get_average_width () const |
| Returns the font average width. | |
| float | get_escapement () const |
| Returns the font escapement. | |
| float | get_orientation () const |
| Returns the font orientation. | |
| int | get_weight () const |
| Returns the font weight. | |
| bool | get_italic () const |
| Returns the font italic setting. | |
| bool | get_underline () const |
| Returns the font underline setting. | |
| bool | get_strikeout () const |
| Returns the font strikeout setting. | |
| bool | get_fixed_pitch () const |
| Returns the font fixed pitch setting. | |
| bool | get_anti_alias () const |
| Get the font anti-alias setting. | |
| bool | get_anti_alias_set () const |
| Returns true if set_anti_alias() was called. (Else, the anti-alias default setting depends on the implementation. | |
| bool | operator== (const CL_FontDescription &other) const |
| Returns true if the font is identical. | |
Operations | |
| CL_FontDescription & | operator= (const CL_FontDescription ©) |
| Copy assignment operator. | |
| void | clone (const CL_FontDescription ©) |
| void | set_typeface_name (const CL_String &name) |
| Sets the typeface name. | |
| void | set_height (int value) |
| Sets the font height. | |
| void | set_average_width (int value) |
| Sets the font average width. | |
| void | set_escapement (float value) |
| Sets the font escapement. | |
| void | set_orientation (float value) |
| Sets the font orientation. | |
| void | set_weight (int value) |
| Sets the font weight. | |
| void | set_italic (bool setting=true) |
| Sets the font italic setting. | |
| void | set_underline (bool setting=true) |
| Sets the font underline setting. | |
| void | set_strikeout (bool setting=true) |
| Sets the font strikeout setting. | |
| void | set_fixed_pitch (bool setting=true) |
| Sets the font fixed pitch setting. | |
| void | set_anti_alias (bool setting=true) |
| Sets the font anti-alias setting. | |
This class allows you to setup a more advanced description when creating a font.
|
|
Constructs a font description with default values.
|
|
|
Constructs a FontDescription.
|
|
|
|
|
|
|
|
|
Create null object.
|
|
|
Get the font anti-alias setting.
|
|
|
Returns true if set_anti_alias() was called. (Else, the anti-alias default setting depends on the implementation.
|
|
|
Returns the font average width.
|
|
|
Returns the font escapement.
|
|
|
Returns the font fixed pitch setting.
|
|
|
Returns the font height.
|
|
|
Returns the font italic setting.
|
|
|
Returns the font orientation.
|
|
|
Returns the font strikeout setting.
|
|
|
Returns the typeface name.
|
|
|
Returns the font underline setting.
|
|
|
Returns the font weight.
|
|
|
Is Null.
|
|
|
Copy assignment operator.
|
|
|
Returns true if the font is identical.
|
|
|
Sets the font anti-alias setting.
|
|
|
Sets the font average width.
|
|
|
Sets the font escapement.
|
|
|
Sets the font fixed pitch setting.
|
|
|
Sets the font height.
|
|
|
Sets the font italic setting.
|
|
|
Sets the font orientation.
|
|
|
Sets the font strikeout setting.
|
|
|
Sets the typeface name.
|
|
|
Sets the font underline setting.
|
|
|
Sets the font weight.
|
1.4.6