
Public Methods | |
| Font () | |
| Font (const Font &font, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
| virtual bool | isSameKindAs (const osg::Object *obj) const |
| virtual const char * | libraryName () const |
| return the name of the object's library. | |
| virtual const char * | className () const |
| return the name of the object's class type. | |
| bool | open (const char *font) |
| bool | open (const std::string &font) |
| virtual bool | create (osg::State &state, int pointSize, const unsigned int res=72) |
| virtual bool | create (osg::State &state) |
| virtual void | output (osg::State &state, const char *text) |
| virtual bool | isOk (void) const |
| virtual bool | isCreated (void) const |
| virtual float | getWidth (const char *text) const |
| virtual int | getHeight () const |
| virtual int | getDescender () const |
| virtual int | getAscender () const |
| int | getPointSize (void) const |
| int | getTextureSize (void) const |
| const std::string & | getFontName () const |
| void | copyAndInvalidate (Font &dest) |
| Transfer font settings to another Font object and invalidate this one. | |
| FTFont * | getFont (void) |
Protected Methods | |
| virtual | ~Font () |
| virtual void | clear () |
| virtual FTFont * | createFontObj (void)=0 |
| bool | init (const std::string &font) |
Protected Attributes | |
| bool | _init |
| bool | _created |
| FTFont * | _font |
| std::string | _fontName |
| int | _pointSize |
| int | _res |
| int | _textureSize |
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
return the name of the object's class type. Must be defined by derived classes. Implements osg::Object. Reimplemented in osgText::RasterFont, and osgText::VectorFont. |
|
|
|
|
|
Transfer font settings to another Font object and invalidate this one.
|
|
|
|
|
||||||||||||||||
|
|
|
|
Implemented in osgText::BitmapFont, osgText::PixmapFont, osgText::TextureFont, osgText::OutlineFont, and osgText::PolygonFont. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in osgText::RasterFont, and osgText::VectorFont. |
|
|
return the name of the object's library. Must be defined by derived classes. The OpenSceneGraph convention the is that the namspace of a library is the same as the library name. Implements osg::Object. Reimplemented in osgText::RasterFont, and osgText::VectorFont. |
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|