A Hershey vector font glyph.
More...
#include <glyph.hpp>
|
| Glyph () |
| Create a new glyph.
|
|
| Glyph (std::string raw) |
| Create a new glyph from a raw coordinate definition.
|
|
std::string | get_raw () |
| Get the raw coordinate definition of the glyph.
|
|
int | get_cid () |
| Get the character's unique identifier.
|
|
int | get_lhp () |
| Get the character's left-hand position.
|
|
int | get_rhp () |
| Get the character's right-hand position.
|
|
int | get_nvert () |
| Get the number of vertices making up the character.
|
|
void | print_info () |
| Print information about the character.
|
|
void | print_coords () |
| Print the character's vertices' coordinates in numpy array format.
|
|
void | print_coords_nparray () |
| Print the character's vertices' coordinates in numpy array format.
|
|
int | get_width () |
| Get the character's width.
|
|
int | get_height () |
| Get the character's height.
|
|
A Hershey vector font glyph.
◆ Glyph() [1/2]
Create a new glyph.
The x and y coordinates of the character's vertices.
◆ Glyph() [2/2]
Glyph::Glyph |
( |
std::string |
raw | ) |
|
Create a new glyph from a raw coordinate definition.
- Parameters
-
raw | The raw coordinate definition of the glyph. |
◆ get_cid()
Get the character's unique identifier.
- Return values
-
The | character's unique identifier. |
◆ get_height()
int Glyph::get_height |
( |
| ) |
|
Get the character's height.
- Return values
-
The | height of the character. |
◆ get_lhp()
Get the character's left-hand position.
- Return values
-
The | character's left-hand position. |
◆ get_nvert()
Get the number of vertices making up the character.
- Return values
-
The | number of vertices making up the character. |
◆ get_raw()
std::string Glyph::get_raw |
( |
| ) |
|
Get the raw coordinate definition of the glyph.
- Return values
-
The | raw coordinate definition of the glyph. |
◆ get_rhp()
Get the character's right-hand position.
- Return values
-
The | character's right-hand position. |
◆ get_width()
Get the character's width.
- Return values
-
The | width of the character. |
◆ coords
int Hershey::Glyph::coords[144][2] |
The width of the character.
The documentation for this class was generated from the following files: