#include <definitions.hpp>
Defines a TrueType font and a myriad of properties.
Example usage:
Definition definitions.hpp:88
Font * setLineSpacing(int spacing)
Definition definitions.cpp:107
Font()
Definition definitions.cpp:57
Font * setKerning(bool enabled)
Definition definitions.cpp:86
Font * setStyle(FontStyle style)
Definition definitions.cpp:135
Font * setSize(int ptSize)
Definition definitions.cpp:128
Properties and usages
You can...
font.setKerning(true);
font.setLanguage("en-US");
font.setLineSpacing(20);
font.setOutline(true);
font.setSDF(false);
font.setSize(40);
◆ Font() [1/2]
◆ Font() [2/2]
| Font::Font |
( |
const std::string & |
path | ) |
|
◆ ~Font()
◆ getHandle()
| TTF_Font * Font::getHandle |
( |
| ) |
const |
◆ load()
template<class Archive >
| void Font::load |
( |
Archive & |
ar | ) |
|
|
inline |
◆ loadFromPath()
| Font * Font::loadFromPath |
( |
const std::string & |
path | ) |
|
◆ save()
template<class Archive >
| void Font::save |
( |
Archive & |
ar | ) |
const |
|
inline |
◆ setAlignment()
◆ setHinting()
◆ setKerning()
| Font * Font::setKerning |
( |
bool |
enabled | ) |
|
◆ setLanguage()
| Font * Font::setLanguage |
( |
const std::string & |
language | ) |
|
◆ setLineSpacing()
| Font * Font::setLineSpacing |
( |
int |
spacing | ) |
|
◆ setOutline()
| Font * Font::setOutline |
( |
int |
outline | ) |
|
◆ setSDF()
| Font * Font::setSDF |
( |
bool |
enabled | ) |
|
◆ setSize()
| Font * Font::setSize |
( |
int |
ptSize | ) |
|
◆ setStyle()
◆ path
◆ size
The documentation for this class was generated from the following files: