40 Glyph(std::string raw);
A Hershey vector font glyph.
Definition glyph.hpp:17
std::string get_raw()
Get the raw coordinate definition of the glyph.
Definition glyph.cpp:19
int get_height()
Get the character's height.
Definition glyph.cpp:68
Glyph()
Create a new glyph.
Definition glyph.cpp:5
int coords[144][2]
Definition glyph.hpp:28
int get_cid()
Get the character's unique identifier.
Definition glyph.cpp:23
void print_coords_nparray()
Print the character's vertices' coordinates in numpy array format.
Definition glyph.cpp:55
void print_info()
Print information about the character.
Definition glyph.cpp:39
int get_nvert()
Get the number of vertices making up the character.
Definition glyph.cpp:35
int get_width()
Get the character's width.
Definition glyph.cpp:64
int get_lhp()
Get the character's left-hand position.
Definition glyph.cpp:27
int get_rhp()
Get the character's right-hand position.
Definition glyph.cpp:31
void print_coords()
Print the character's vertices' coordinates in numpy array format.
Definition glyph.cpp:49