Code

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