1#ifndef HERSHEY_CAIRO_HPP
2#define HERSHEY_CAIRO_HPP
14#define A4_P_WIDTH 595.275590551
15#define A4_P_HEIGHT 841.889763780
16#define A5_P_WIDTH 419.527559055
17#define A5_P_HEIGHT 595.275590551
18#define A6_P_WIDTH 297.637795276
19#define A6_P_HEIGHT 419.527559055
20#define B6_P_WIDTH 354.330708661
21#define B6_P_HEIGHT 498.897637795
22#define L4x6_WIDTH 287.716535433
23#define L4x6_HEIGHT 432.000000000
62float 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(cairo_t *cr, Hershey::Glyph glyph, float x0, float y0, float scale)
Draw a glyph.
Definition hershey_cairo.cpp:3
void draw_font(cairo_t *cr, Hershey::Font font, int width, int height)
Draw the glyphs in a font.
Definition hershey_cairo.cpp:28
void draw_glyphs(cairo_t *cr, Hershey::String string, float x0, float y0, float scale)
Draw a string of glyphs.
Definition hershey_cairo.cpp:20
float position(float fraction, float x, float X)
Calculate a fractional position.
Definition hershey_cairo.cpp:62