ofxMUI
A Multi-touch GUI implementation built with ofxDOM for openFrameworks.
ofx::MUI::TrueTypeFontSettings Class Reference

Public Member Functions

 TrueTypeFontSettings (const std::string &filename=DEFAULT_FONT, int fontsize=defaultFontSize(FontSize::MEDIUM), bool antiAliased=true, bool fullCharacterSet=true, bool makeContourss=false, float simplifyAmt=0.3f, int dpi=0)
 
const std::string & filename () const
 
int fontSize () const
 
bool antiAliased () const
 
bool fullCharacterSet () const
 
bool makeContours () const
 
float simplifyAmount () const
 
int dpi () const
 

Static Public Member Functions

static int defaultFontSize (FontSize size=FontSize::MEDIUM)
 Get the font size in pixels for the given FontSize. More...
 
static TrueTypeFontSettings defaultFontSettings (FontSize size=FontSize::MEDIUM)
 

Static Public Attributes

static const std::string DEFAULT_FONT = OF_TTF_SANS
 The default font name.
 

Member Function Documentation

int ofx::MUI::TrueTypeFontSettings::defaultFontSize ( FontSize  size = FontSize::MEDIUM)
static

Get the font size in pixels for the given FontSize.

Parameters
sizeThe named FontSize.
Returns
the size in pixels.

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