Text font class.
More...
#include <Text.h>
|
| Font ()=default |
|
| Font (Canvas &canvas, const string &fname, const string &ttfPath) |
| Creates font by loading it from the disk from specified file path. More...
|
|
| Font (Canvas &canvas, const string &fname, const Memery &mem, bool invalidateMem) |
| Creates image by loading it from the specified memory chunk. More...
|
|
bool | valid () const |
| Check is the font face is valid. More...
|
|
| ~Font () |
|
NanoCanvas::Font::Font |
( |
| ) |
|
|
default |
NanoCanvas::Font::Font |
( |
Canvas & |
canvas, |
|
|
const string & |
fname, |
|
|
const string & |
ttfPath |
|
) |
| |
Creates font by loading it from the disk from specified file path.
- Parameters
-
canvas | The canvas who owns this font |
fname | The name of the font |
ttfPath | The ttf file path to load |
NanoCanvas::Font::Font |
( |
Canvas & |
canvas, |
|
|
const string & |
fname, |
|
|
const Memery & |
mem, |
|
|
bool |
invalidateMem |
|
) |
| |
Creates image by loading it from the specified memory chunk.
- Parameters
-
canvas | The canvas who owns this font |
fname | The name of the font |
mem | The memory to load from |
invalidateMem | Should invalidate the memery after loading |
- Note
- Invalidate memery is not release the memery you should do that yourself!
- See also
- Memery::invalidate
NanoCanvas::Font::~Font |
( |
| ) |
|
|
inline |
bool NanoCanvas::Font::valid |
( |
| ) |
const |
|
inline |
Check is the font face is valid.
- Returns
- Is the font face is valid
int NanoCanvas::Font::face = -1 |
string NanoCanvas::Font::name = nullstr |
The documentation for this class was generated from the following file:
- /home/geequlim/Documents/Workspace/Develop/NanoCanvas/src/Text.h