Code

adding ifdef HAVE_CONFIG_H
[inkscape.git] / src / sp-font.h
1 #ifdef HAVE_CONFIG_H
2 # include <config.h>
3 #endif
5 #ifdef ENABLE_SVG_FONTS
6 #ifndef __SP_FONT_H__
7 #define __SP_FONT_H__
9 /*
10  * SVG <font> 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_FONT (sp_font_get_type ())
23 #define SP_FONT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_FONT, SPFont))
24 #define SP_FONT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_FONT, SPFontClass))
25 #define SP_IS_FONT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_FONT))
26 #define SP_IS_FONT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_FONT))
28 struct SPFont : public SPObject {
29     double horiz_origin_x;
30     double horiz_origin_y;
31     double horiz_adv_x;
32     double vert_origin_x;
33     double vert_origin_y;
34     double vert_adv_y;
35 };
37 struct SPFontClass {
38         SPObjectClass parent_class;
39 };
41 GType sp_font_get_type (void);
43 #endif //#ifndef __SP_FONT_H__
44 #endif //#ifdef ENABLE_SVG_FONTS