A class describing a font.
More...
#include <Font.hpp>
|
enum | { glyphCount = 128
} |
|
A class describing a font.
The number of glyphs in a font
const Glyph& lm::Font::glyph |
( |
int |
i | ) |
const |
|
inline |
Extract a glyph from the font
- Parameters
-
- Returns
- A reference to the glyph
void lm::Font::setPath |
( |
const std::string & |
path, |
|
|
bool |
resource = true |
|
) |
| |
Set the load path for the font
- Parameters
-
path | The load path |
resource | If true, the path is relative to the resource path |
void lm::Font::setSize |
( |
float |
size | ) |
|
Set the font size in points size The size
const Texture& lm::Font::texture |
( |
| ) |
const |
|
inline |
Get the texture associated with the font.
- Returns
- A reference to the texture
void lm::Font::unload |
( |
| ) |
|
The documentation for this class was generated from the following file: