class OSGTEXT_EXPORT osgText::Font


Inheritance:


Public Methods

[more] Font()
[more]virtual bool open(const std::string& font)
[more]virtual bool create(int pointSize, const unsigned int res = 72 )
[more]virtual bool create()
[more]virtual void output(const char* text)
[more]virtual bool isOk(void) const
[more]virtual bool isCreated(void) const
[more]virtual float getWidth(const char* text) const
[more]virtual int getHeight() const
[more]virtual int getDescender() const
[more]virtual int getAscender() const
[more]int getPointSize(void) const
[more]const std::string& getFontName()
[more]FTFont* getFont(void)

Protected Fields

[more]bool _init
[more]bool _created
[more]FTFont* _font
[more]std::string _fontName
[more]int _pointSize
[more]int _res

Protected Methods

[more]virtual ~Font()
[more]virtual void clear()
[more]virtual FTFont* createFontObj(void) = 0
[more]bool init(const std::string& font)


Documentation

o Font()

ovirtual bool open(const std::string& font)

ovirtual bool create(int pointSize, const unsigned int res = 72 )

ovirtual bool create()

ovirtual void output(const char* text)

ovirtual bool isOk(void) const

ovirtual bool isCreated(void) const

ovirtual float getWidth(const char* text) const

ovirtual int getHeight() const

ovirtual int getDescender() const

ovirtual int getAscender() const

oint getPointSize(void) const

oconst std::string& getFontName()

oFTFont* getFont(void)

ovirtual ~Font()

ovirtual void clear()

ovirtual FTFont* createFontObj(void) = 0

obool init(const std::string& font)

obool _init

obool _created

oFTFont* _font

ostd::string _fontName

oint _pointSize

oint _res


Direct child classes:
VectorFont
RasterFont

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.