ASPiK SDK
VSTGUI::CFontDesc Class Reference

font class More...

#include <cfont.h>

Inheritance diagram for VSTGUI::CFontDesc:
VSTGUI::ReferenceCounted< T > VSTGUI::IReference

Public Types

using PlatformFontPtr = SharedPointer< IPlatformFont >
 

Public Member Functions

 CFontDesc (const UTF8String &name="", const CCoord &size=0, const int32_t style=0)
 
 CFontDesc (const CFontDesc &font)
 
virtual const PlatformFontPtr getPlatformFont () const
 
virtual const IFontPaintergetFontPainter () const
 
virtual CFontDescoperator= (const CFontDesc &)
 
virtual bool operator== (const CFontDesc &) const
 
virtual bool operator!= (const CFontDesc &other) const
 
Size, Name and Style Methods
const UTF8StringgetName () const
 get the name of the font
 
const CCoord & getSize () const
 get the height of the font
 
const int32_t & getStyle () const
 get the style of the font
 
virtual void setName (const UTF8String &newName)
 set the name of the font
 
virtual void setSize (CCoord newSize)
 set the height of the font
 
virtual void setStyle (int32_t newStyle)
 set the style of the font More...
 
- 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
 

Static Public Member Functions

static void cleanup ()
 

Protected Member Functions

void beforeDelete () override
 
virtual void freePlatformFont ()
 

Protected Attributes

UTF8String name
 
CCoord size
 
int32_t style
 
PlatformFontPtr platformFont
 

Detailed Description

font class

The CFontDesc class replaces the old font handling. You have now the possibilty to use whatever font you like as long as it is available on the system. You should cache your own CFontDesc as this speeds up drawing on some systems.

Member Function Documentation

◆ setStyle()

void VSTGUI::CFontDesc::setStyle ( int32_t  newStyle)
virtual

set the style of the font

See also
CTxtFace

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