ASPiK SDK
|
platform font class More...
#include <iplatformfont.h>
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 const IFontPainter * | getPainter () const =0 |
![]() | |
ReferenceCounted (const ReferenceCounted &) | |
ReferenceCounted & | operator= (const ReferenceCounted &) |
void | forget () override |
decrease refcount and delete object if refcount == 0 | |
void | remember () override |
increase refcount | |
virtual int32_t | getNbReference () const |
get refcount | |
virtual void | beforeDelete () |
Static Public Member Functions | |
static SharedPointer< IPlatformFont > | create (const UTF8String &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().