Code

Store cached icons to disk between runs, and invalidate/purge as needed.
[inkscape.git] / src / sp-font.h
1 #ifdef HAVE_CONFIG_H
2 # include <config.h>
3 #endif
5 #ifndef SP_FONT_H_SEEN
6 #define SP_FONT_H_SEEN
8 /*
9  * SVG <font> element implementation
10  *
11  * Authors:
12  *    Felipe C. da S. Sanches <juca@members.fsf.org>
13  *
14  * Copyright (C) 2008 Felipe C. da S. Sanches
15  *
16  * Released under GNU GPL, read the file 'COPYING' for more information
17  */
19 #include "sp-object.h"
21 #define SP_TYPE_FONT (sp_font_get_type ())
22 #define SP_FONT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_FONT, SPFont))
23 #define SP_FONT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_FONT, SPFontClass))
24 #define SP_IS_FONT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_FONT))
25 #define SP_IS_FONT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_FONT))
27 struct SPFont : public SPObject {
28     double horiz_origin_x;
29     double horiz_origin_y;
30     double horiz_adv_x;
31     double vert_origin_x;
32     double vert_origin_y;
33     double vert_adv_y;
34 };
36 struct SPFontClass {
37     SPObjectClass parent_class;
38 };
40 GType sp_font_get_type (void);
42 #endif //#ifndef SP_FONT_H_SEEN