23void write_header(std::ofstream &svg_file,
int width,
int height,
int scale);
42 std::ofstream &svg_file,
Hershey::Glyph glyph,
int x0,
int y0,
int scale
55 std::ofstream &svg_file,
Hershey::String string,
int x0,
int y0,
int scale
75float position(
float fraction,
float x,
float X);
A Hershey vector font.
Definition font.hpp:19
A Hershey vector font glyph.
Definition glyph.hpp:17
A character string comprising Hershey vector font glyphs.
Definition string.hpp:20
void draw_glyph(std::ofstream &svg_file, Hershey::Glyph glyph, int x0, int y0, int scale)
Draw a glyph.
Definition hershey_svg.cpp:13
void draw_glyphs(std::ofstream &svg_file, Hershey::String string, int x0, int y0, int scale)
Draw a string of glyphs.
Definition hershey_svg.cpp:35
void write_footer(std::ofstream &svg_file)
Write the svg file header.
Definition hershey_svg.cpp:9
void write_header(std::ofstream &svg_file, int width, int height, int scale)
Write the svg file header.
Definition hershey_svg.cpp:3
float position(float fraction, float x, float X)
Calculate a fractional position.
Definition hershey_cairo.cpp:62
void draw_font(std::ofstream &svg_file, Hershey::Font font, int width, int height)
Draw the glyphs in a font.
Definition hershey_svg.cpp:45