platform font class More...
Public Member Functions | |
virtual double | getAscent () const =0 |
returns the ascent line offset of the baseline of this font. If not supported returns -1 | |
virtual double | getDescent () const =0 |
returns the descent line offset of the baseline of this font. If not supported returns -1 | |
virtual double | getLeading () const =0 |
returns the space between lines for this font. If not supported returns -1 | |
virtual double | getCapHeight () const =0 |
returns the height of the highest capital letter for this font. If not supported returns -1 | |
virtual IFontPainter * | getPainter ()=0 |
Reference Counting Methods | |
virtual void | forget () |
decrease refcount and delete object if refcount == 0 | |
virtual void | remember () |
increase refcount | |
virtual int32_t | getNbReference () const |
get refcount | |
Message Methods | |
virtual CMessageResult | notify (CBaseObject *sender, IdStringPtr message) |
Static Public Member Functions | |
static IPlatformFont * | create (UTF8StringPtr name, const CCoord &size, const int32_t &style) |
static bool | getAllPlatformFontFamilies (std::list< std::string > &fontFamilyNames) |
platform font class
Encapsulation of a platform font. You should never need to call IPlatformFont::create(..), instead use CFontDesc::getPlatformFont().
static IPlatformFont* create | ( | UTF8StringPtr | name, | |
const CCoord & | size, | |||
const int32_t & | style | |||
) | [static] |
virtual void forget | ( | ) | [inline, virtual, inherited] |
decrease refcount and delete object if refcount == 0
static bool getAllPlatformFontFamilies | ( | std::list< std::string > & | fontFamilyNames | ) | [static] |
virtual double getAscent | ( | ) | const [pure virtual] |
returns the ascent line offset of the baseline of this font. If not supported returns -1
virtual double getCapHeight | ( | ) | const [pure virtual] |
returns the height of the highest capital letter for this font. If not supported returns -1
virtual double getDescent | ( | ) | const [pure virtual] |
returns the descent line offset of the baseline of this font. If not supported returns -1
virtual double getLeading | ( | ) | const [pure virtual] |
returns the space between lines for this font. If not supported returns -1
virtual int32_t getNbReference | ( | ) | const [inline, virtual, inherited] |
get refcount
virtual IFontPainter* getPainter | ( | ) | [pure virtual] |
virtual CMessageResult notify | ( | CBaseObject * | sender, | |
IdStringPtr | message | |||
) | [inline, virtual, inherited] |
virtual void remember | ( | ) | [inline, virtual, inherited] |
increase refcount