#include <textFont.h>
Inheritance diagram for TextFont:
Public Member Functions | |
TextFont () | |
INLINE bool | is_valid () const |
INLINE float | get_line_height () const |
INLINE void | set_line_height (float line_height) |
INLINE float | get_space_advance () const |
INLINE void | set_space_advance (float space_advance) |
float | calc_width (int character) |
float | calc_width (const string &line) |
string | wordwrap_to (const string &text, float wordwrap_width, bool preserve_trailing_whitespace) |
virtual void | write (ostream &out, int indent_level) const |
float | calc_width (const wstring &line) |
wstring | wordwrap_to (const wstring &text, float wordwrap_width, bool preserve_trailing_whitespace) |
virtual bool | get_glyph (int character, const TextGlyph *&glyph)=0 |
virtual TypeHandle | get_type () const |
virtual TypeHandle | force_init_type () |
Static Public Member Functions | |
TypeHandle | get_class_type () |
void | init_type () |
Public Attributes | |
PUBLISHED | __pad0__: virtual ~TextFont() |
Protected Attributes | |
bool | _is_valid |
float | _line_height |
float | _space_advance |
Static Private Attributes | |
TypeHandle | _type_handle |
|
Definition at line 52 of file textFont.cxx. References _is_valid, _line_height, and _space_advance. |
|
Definition at line 250 of file textFont.cxx. References calc_width(), and width. |
|
Definition at line 98 of file textFont.cxx. References calc_width(), and width. |
|
Definition at line 74 of file textFont.cxx. References _space_advance, TextGlyph::get_advance(), get_glyph(), and NULL. Referenced by calc_width(), and wordwrap_to(). |
|
Reimplemented from TypedReferenceCount. Reimplemented in StaticTextFont. Definition at line 87 of file textFont.h. References Namable::get_class_type(), and Namable::init_type(). |
|
Reimplemented from Namable. Reimplemented in StaticTextFont. Definition at line 76 of file textFont.h. Referenced by StaticTextFont::force_init_type(), StaticTextFont::get_type(), and StaticTextFont::init_type(). |
|
Implemented in StaticTextFont. Referenced by calc_width(), TextNode::get_character_glyphs(), and TextNode::tack_on_accent(). |
|
Referenced by TextNode::measure_text(). |
|
Referenced by TextNode::assemble_row(). |
|
Reimplemented from TypedReferenceCount. Reimplemented in StaticTextFont. Definition at line 84 of file textFont.h. References Namable::get_class_type(). |
|
Reimplemented from Namable. Reimplemented in StaticTextFont. Definition at line 79 of file textFont.h. References TypedObject::get_class_type(), TypedReferenceCount::init_type(), and register_type(). Referenced by StaticTextFont::force_init_type(), init_libtext(), and StaticTextFont::init_type(). |
|
|
|
|
|
|
|
Definition at line 271 of file textFont.cxx. References calc_width(), isblank(), isspacew(), p, q, and width. |
|
Definition at line 119 of file textFont.cxx. References calc_width(), isblank(), p, q, and width. Referenced by TextNode::do_measure(), and PT(). |
|
Reimplemented in StaticTextFont. Definition at line 237 of file textFont.cxx. References Namable::get_name(), and indent(). |
|
Reimplemented from Namable. Reimplemented in StaticTextFont. Definition at line 47 of file textFont.h. |
|
Definition at line 71 of file textFont.h. Referenced by TextFont(). |
|
Definition at line 72 of file textFont.h. Referenced by StaticTextFont::find_characters(), and TextFont(). |
|
Definition at line 73 of file textFont.h. Referenced by calc_width(), StaticTextFont::find_characters(), and TextFont(). |
|
Reimplemented from Namable. Reimplemented in StaticTextFont. Definition at line 23 of file textFont.cxx. |