OpenSceneGraph
Classes | Typedefs | Enumerations | Functions
osgText Namespace Reference

The osgText library is a NodeKit that extends the core scene graph to support high quality text. More...

Classes

class  Bevel
 
class  FadeText
 
class  Font
 Pure virtual base class for fonts. More...
 
class  Glyph
 
class  Glyph3D
 
class  GlyphGeometry
 
class  GlyphTexture
 
class  String
 
class  Style
 
class  Text
 
class  Text3D
 
class  TextBase
 
class  VectorUInt
 

Typedefs

typedef Font Font3D
 
typedef std::pair< unsigned int, unsigned int > FontResolution
 

Enumerations

enum  ShaderTechnique { NO_TEXT_SHADER = 0x0, GREYSCALE = 0x1, SIGNED_DISTANCE_FIELD = 0x2, ALL_FEATURES = GREYSCALE | SIGNED_DISTANCE_FIELD }
 
enum  KerningType { KERNING_DEFAULT, KERNING_UNFITTED, KERNING_NONE }
 

Functions

OSGTEXT_EXPORT osg::ref_ptr< FontreadRefFontFile (const std::string &filename, const osgDB::Options *userOptions=0)
 
OSGTEXT_EXPORT osg::ref_ptr< FontreadRefFontStream (std::istream &stream, const osgDB::Options *userOptions=0)
 
OSGTEXT_EXPORT std::string findFontFile (const std::string &str)
 
osg::ref_ptr< FontreadRefFont3DFile (const std::string &filename, const osgDB::ReaderWriter::Options *userOptions=0)
 deprecated, use readRefFontFile() instead. More...
 
osg::ref_ptr< FontreadRefFont3DStream (std::istream &stream, const osgDB::ReaderWriter::Options *userOptions=0)
 deprecated, use readRefFontStream() instead. More...
 
std::string findFont3DFile (const std::string &str)
 deprecated, use findFontFile() instead. More...
 

Detailed Description

The osgText library is a NodeKit that extends the core scene graph to support high quality text.

Typedef Documentation

◆ Font3D

◆ FontResolution

typedef std::pair< unsigned int, unsigned int > osgText::FontResolution

Enumeration Type Documentation

◆ KerningType

Enumerator
KERNING_DEFAULT 
KERNING_UNFITTED 
KERNING_NONE 

◆ ShaderTechnique

Enumerator
NO_TEXT_SHADER 
GREYSCALE 
SIGNED_DISTANCE_FIELD 
ALL_FEATURES 

Function Documentation

◆ findFont3DFile()

std::string osgText::findFont3DFile ( const std::string &  str)
inline

deprecated, use findFontFile() instead.

References findFontFile().

◆ findFontFile()

OSGTEXT_EXPORT std::string osgText::findFontFile ( const std::string &  str)

Referenced by findFont3DFile().

◆ readRefFont3DFile()

osg::ref_ptr<Font> osgText::readRefFont3DFile ( const std::string &  filename,
const osgDB::ReaderWriter::Options userOptions = 0 
)
inline

deprecated, use readRefFontFile() instead.

References readRefFontFile().

◆ readRefFont3DStream()

osg::ref_ptr<Font> osgText::readRefFont3DStream ( std::istream &  stream,
const osgDB::ReaderWriter::Options userOptions = 0 
)
inline

deprecated, use readRefFontStream() instead.

References readRefFontStream().

◆ readRefFontFile()

OSGTEXT_EXPORT osg::ref_ptr<Font> osgText::readRefFontFile ( const std::string &  filename,
const osgDB::Options userOptions = 0 
)

Referenced by readRefFont3DFile().

◆ readRefFontStream()

OSGTEXT_EXPORT osg::ref_ptr<Font> osgText::readRefFontStream ( std::istream &  stream,
const osgDB::Options userOptions = 0 
)

Referenced by readRefFont3DStream().