3DCoat Core API
The 3DCoat API documentation.
Loading...
Searching...
No Matches
coat::Font Class Reference

Public Member Functions

 Font ()
 The Font class specifies a query for a font used for drawing text.
 
 Font (const FontInfo &_finfo)
 constructs a new font object.
 
 Font (const char *_fname)
 constructs a new font object.
 
 Font (const char *_fname, const int &_st)
 constructs a new font object.
 
Font & size (const int &_size)
 set the font size
 
int size () const
 get the font size
 
Font & weight (const int &weight)
 set the font weight
 
int weight () const
 get the font weight
 
Font & style (const int st)
 set the style of the font
 
int style () const
 get the font style
 
Font & name (const char *_fname)
 set the font name
 
const char * name () const
 get the font name
 
void select ()
 selects a font object into the viewport
 

Detailed Description

Constructor & Destructor Documentation

◆ Font() [1/3]

coat::Font::Font ( const FontInfo & _finfo)

constructs a new font object.

Parameters
_finfofont information

◆ Font() [2/3]

coat::Font::Font ( const char * _fname)

constructs a new font object.

Parameters
_fnamefont name

◆ Font() [3/3]

coat::Font::Font ( const char * _fname,
const int & _st )

constructs a new font object.

Parameters
_fnamethe font name
_stthe font style

Member Function Documentation

◆ name() [1/2]

const char * coat::Font::name ( ) const

get the font name

Returns
the font name

◆ name() [2/2]

Font & coat::Font::name ( const char * _fname)

set the font name

Parameters
_fnamethe font name
Returns
font reference

◆ size() [1/2]

int coat::Font::size ( ) const

get the font size

Returns
font size

◆ size() [2/2]

Font & coat::Font::size ( const int & _size)

set the font size

Parameters
_sizefont size property
Returns
font reference

◆ style() [1/2]

int coat::Font::style ( ) const

get the font style

Returns
the font style

◆ style() [2/2]

Font & coat::Font::style ( const int st)

set the style of the font

Parameters
stthe new font style
Returns
font reference

◆ weight() [1/2]

int coat::Font::weight ( ) const

get the font weight

Returns
font weight

◆ weight() [2/2]

Font & coat::Font::weight ( const int & weight)

set the font weight

Parameters
weightfont weight property
Returns
font reference

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