Base Framework
Public Member Functions | Static Public Member Functions | List of all members
GraphicsContext::Font Class Reference

Handle to a font. More...

#include <base/ui/GraphicsContext.h>

Inherits GraphicsContext::GraphicsContextObject.

Public Member Functions

 Font (const String &name, unsigned short height, FontWeight weight=NORMAL, unsigned int flags=0)
 

Static Public Member Functions

static Array< StringgetFonts ()
 

Detailed Description

Handle to a font.

Constructor & Destructor Documentation

◆ Font()

GraphicsContext::Font::Font ( const String name,
unsigned short  height,
FontWeight  weight = NORMAL,
unsigned int  flags = 0 
)

Initializes the font.

Parameters
nameThe name of the font.
weightThe weight of the font.
flagsThe flags.

Member Function Documentation

◆ getFonts()

static Array<String> GraphicsContext::Font::getFonts ( )
static

Returns the available fonts.