ASPiK SDK
VSTGUI::IPlatformFont Class Referenceabstract

platform font class More...

#include <iplatformfont.h>

Inheritance diagram for VSTGUI::IPlatformFont:
VSTGUI::ReferenceCounted< T > VSTGUI::IReference VSTGUI::Cairo::Font

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 IFontPaintergetPainter () const =0
 
- Public Member Functions inherited from VSTGUI::ReferenceCounted< T >
 ReferenceCounted (const ReferenceCounted &)
 
ReferenceCountedoperator= (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< IPlatformFontcreate (const UTF8String &name, const CCoord &size, const int32_t &style)
 
static bool getAllPlatformFontFamilies (std::list< std::string > &fontFamilyNames)
 

Detailed Description

platform font class

Encapsulation of a platform font. You should never need to call IPlatformFont::create(..), instead use CFontDesc::getPlatformFont().


The documentation for this class was generated from the following files: