1 #ifndef __SP_FONT_H__
2 #define __SP_FONT_H__
4 /*
5 * SVG <font> element implementation
6 *
7 * Authors:
8 * Felipe C. da S. Sanches <felipe.sanches@gmail.com>
9 *
10 * Copyright (C) 2008 Felipe C. da S. Sanches
11 *
12 * Released under GNU GPL, read the file 'COPYING' for more information
13 */
15 #include "sp-object.h"
17 #define SP_TYPE_FONT (sp_font_get_type ())
18 #define SP_FONT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_FONT, SPFont))
19 #define SP_FONT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_FONT, SPFontClass))
20 #define SP_IS_FONT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_FONT))
21 #define SP_IS_FONT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_FONT))
23 struct SPFont : public SPObject {
24 double horiz_origin_x;
25 double horiz_origin_y;
26 double horiz_adv_x;
27 double vert_origin_x;
28 double vert_origin_y;
29 double vert_adv_y;
30 };
32 struct SPFontClass {
33 SPObjectClass parent_class;
34 };
36 GType sp_font_get_type (void);
38 #endif //#ifndef __SP_FONT_H__