List of all members.
Detailed Description
Pure virtual base class for fonts. Concrete implementation are the DefaultFont found in src/osgText/DefaultFont.cpp and FreeTypeFont found in src/osgPlugins/freetype/FreeTypeFont.cpp
Member Typedef Documentation
Constructor & Destructor Documentation
virtual osgText::Font3D::~Font3D |
( |
) |
[protected, virtual] |
Member Function Documentation
void osgText::Font3D::addGlyph |
( |
unsigned int |
charcode, |
|
|
Glyph3D * |
glyph |
|
) |
| [protected] |
virtual const char* osgText::Font3D::className |
( |
) |
const [inline, virtual] |
return the name of the object's class type. Must be defined by derived classes.
Implements osg::Object.
Clone an object, with Object* return type. Must be defined by derived classes.
Implements osg::Object.
virtual osg::Object* osgText::Font3D::cloneType |
( |
) |
const [inline, virtual] |
Clone the type of an object, with Object* return type. Must be defined by derived classes.
Implements osg::Object.
virtual std::string osgText::Font3D::getFileName |
( |
) |
const [virtual] |
unsigned int osgText::Font3D::getFontDepth |
( |
) |
const [inline] |
unsigned int osgText::Font3D::getFontHeight |
( |
) |
const [inline] |
unsigned int osgText::Font3D::getFontWidth |
( |
) |
const [inline] |
virtual Glyph3D* osgText::Font3D::getGlyph |
( |
unsigned int |
charcode ) |
[virtual] |
Get a Glyph for specified charcode, and the font size nearest to the current font size hint.
virtual osg::Vec2 osgText::Font3D::getKerning |
( |
unsigned int |
leftcharcode, |
|
|
unsigned int |
rightcharcode, |
|
|
KerningType |
kerningType |
|
) |
| [virtual] |
Get a kerning (adjustment of spacing of two adjacent character) for specified charcodes, w.r.t the current font size hint.
virtual float osgText::Font3D::getScale |
( |
) |
const [inline, virtual] |
Return the scale to apply on the glyph to have a charactere size equal to 1
virtual bool osgText::Font3D::hasVertical |
( |
) |
const [virtual] |
Return true if this font provides vertical alignments and spacing or glyphs.
virtual bool osgText::Font3D::isSameKindAs |
( |
const osg::Object * |
obj ) |
const [inline, virtual] |
virtual const char* osgText::Font3D::libraryName |
( |
) |
const [inline, virtual] |
return the name of the object's library. Must be defined by derived classes. The OpenSceneGraph convention is that the namespace of a library is the same as the library name.
Implements osg::Object.
virtual void osgText::Font3D::setThreadSafeRefUnref |
( |
bool |
threadSafe ) |
[virtual] |
Friends And Related Function Documentation
Member Data Documentation
The documentation for this class was generated from the following file: