A Hershey vector font.
More...
#include <font.hpp>
|
|
| Font () |
| | Create a new font.
|
| |
| | Font (std::string name) |
| | Create a new font.
|
| |
| std::string | get_fname () |
| | Get the font's filename.
|
| |
| std::string | get_name () |
| | Get the font's name.
|
| |
| int | get_num_glyphs () |
| | Get the number of glyphs in the font.
|
| |
| Glyph | get_glyph (int i) |
| | Get the i'th glyph in the font.
|
| |
| Glyph | get_glyph (char c) |
| | Get the glyph corresponding to character c.
|
| |
◆ Font()
| Font::Font |
( |
std::string |
name | ) |
|
Create a new font.
- Parameters
-
| name | The name of the font to create. |
◆ get_fname()
| std::string Font::get_fname |
( |
| ) |
|
Get the font's filename.
- Return values
-
| The | name of the file containing the font's raw glyph definitions. |
◆ get_glyph() [1/2]
| Glyph Font::get_glyph |
( |
char |
c | ) |
|
Get the glyph corresponding to character c.
- Parameters
-
| c | The character to get the glyph of. |
- Return values
-
◆ get_glyph() [2/2]
| Glyph Font::get_glyph |
( |
int |
i | ) |
|
Get the i'th glyph in the font.
- Parameters
-
| i | The index of the glyph to get. |
- Return values
-
| The | glyph at index i in the font. |
◆ get_name()
| std::string Font::get_name |
( |
| ) |
|
Get the font's name.
- Return values
-
◆ get_num_glyphs()
| int Font::get_num_glyphs |
( |
| ) |
|
Get the number of glyphs in the font.
- Return values
-
| The | number of glyphs in the font. |
The documentation for this class was generated from the following files: