1 #ifdef HAVE_CONFIG_H
2 # include <config.h>
3 #endif
5 #ifdef ENABLE_SVG_FONTS
6 #ifndef __SP_MISSING_GLYPH_H__
7 #define __SP_MISSING_GLYPH_H__
9 /*
10 * SVG <missing-glyph> element implementation
11 *
12 * Authors:
13 * Felipe C. da S. Sanches <felipe.sanches@gmail.com>
14 *
15 * Copyright (C) 2008 Felipe C. da S. Sanches
16 *
17 * Released under GNU GPL, read the file 'COPYING' for more information
18 */
20 #include "sp-object.h"
22 #define SP_TYPE_MISSING_GLYPH (sp_missing_glyph_get_type ())
23 #define SP_MISSING_GLYPH(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_MISSING_GLYPH, SPMissingGlyph))
24 #define SP_MISSING_GLYPH_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_MISSING_GLYPH, SPMissingGlyphClass))
25 #define SP_IS_MISSING_GLYPH(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_MISSING_GLYPH))
26 #define SP_IS_MISSING_GLYPH_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_MISSING_GLYPH))
28 struct SPMissingGlyph : public SPObject {
29 char* d;
30 double horiz_adv_x;
31 double vert_origin_x;
32 double vert_origin_y;
33 double vert_adv_y;
34 };
36 struct SPMissingGlyphClass {
37 SPObjectClass parent_class;
38 };
40 GType sp_missing_glyph_get_type (void);
42 #endif //#ifndef __SP_MISSING_GLYPH_H__
43 #endif //#ifdef ENABLE_SVG_FONTS