1 #ifndef SEEN_LIBNRTYPE_FONT_GLYPH_H
2 #define SEEN_LIBNRTYPE_FONT_GLYPH_H
4 #include <libnrtype/nrtype-forward.h>
5 #include <livarot/livarot-forward.h>
6 #include <2geom/forward.h>
8 // the info for a glyph in a font. it's totally resolution- and fontsize-independent
9 struct font_glyph {
10 double h_advance, h_width; // width != advance because of kerning adjustements
11 double v_advance, v_width;
12 double bbox[4]; // bbox of the path (and the artbpath), not the bbox of the glyph
13 // as the fonts sometimes contain
14 Path* outline; // outline as a livarot Path
15 Geom::PathVector* pathvector; // outline as 2geom pathvector, for text->curve stuff (should be unified with livarot)
16 };
19 #endif /* !SEEN_LIBNRTYPE_FONT_GLYPH_H */
21 /*
22 Local Variables:
23 mode:c++
24 c-file-style:"stroustrup"
25 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
26 indent-tabs-mode:nil
27 fill-column:99
28 End:
29 */
30 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :