Open Font Render 1.2
Loading...
Searching...
No Matches
Utility APIs

Functions

template<typename T >
static void OpenFontRender::setSerial (T &output)
 Set up serial output control functions.
 
void OpenFontRender::showFreeTypeVersion ()
 Show using FreeType version.
 
void OpenFontRender::showCredit ()
 Show FreeType credit.
 
void OpenFontRender::getFreeTypeVersion (char *str)
 Get using FreeType version text.
 
void OpenFontRender::getCredit (char *str)
 Get using FreeType credit text.
 
void OpenFontRender::setDebugLevel (uint8_t level)
 Set debug output level.
 

Detailed Description

This is a group of utility methods.

Function Documentation

◆ getCredit()

void OpenFontRender::getCredit ( char *  str)

Get using FreeType credit text.

Parameters
[out](*str)FreeType credit string.
Note
The minimum string length required can be obtained with OpenFontRender::CREDIT_STRING_SIZE.
Attention
An array of sufficient length must be passed as an argument.
Here is the caller graph for this function:

◆ getFreeTypeVersion()

void OpenFontRender::getFreeTypeVersion ( char *  str)

Get using FreeType version text.

Parameters
[out](*str)FreeType version string.
Note
The minimum string length required can be obtained with OpenFontRender::FT_VERSION_STRING_SIZE.
Attention
An array of sufficient length must be passed as an argument.
Here is the caller graph for this function:

◆ setDebugLevel()

void OpenFontRender::setDebugLevel ( uint8_t  level)

Set debug output level.

Parameters
[out](level)Debug level.
Note
The OFR_DEBUG_LEVEL enumeration is recommended for specifying the debug level.
Multiple levels can be specified for debugging levels simultaneously using the OR operation.

◆ setSerial()

template<typename T >
static void OpenFontRender::setSerial ( T &  output)
inlinestatic

Set up serial output control functions.

Template Parameters
(T)Serial control class.
Parameters
[in](&output)Instance for serial control.
Attention
To use this function, it must be possible to call the print method on the instance given as the argument.
Note
This function only calls the setPrintFunc() method internally.
Here is the call graph for this function:

◆ showCredit()

void OpenFontRender::showCredit ( )

Show FreeType credit.

See also
setSerial, setPrintFunc
Note
Need to set external output function.
Use the setSerial or setPrintFunc function to set the external output function.
Here is the call graph for this function:

◆ showFreeTypeVersion()

void OpenFontRender::showFreeTypeVersion ( )

Show using FreeType version.

See also
setSerial, setPrintFunc
Note
Need to set external output function.
Use the setSerial or setPrintFunc function to set the external output function.
Here is the call graph for this function: