Code

* add rule in configure.ac so that only who has cairo > 1.6.4 (currently cairo git...
[inkscape.git] / src / sp-font-face.h
1 #include "config.h"
2 #ifdef ENABLE_SVG_FONTS
3 #ifndef __SP_FONTFACE_H__
4 #define __SP_FONTFACE_H__
6 /*
7  * SVG <font-face> element implementation
8  *
9  * Section 20.8.3 of the W3C SVG 1.1 spec
10  * available at: 
11  * http://www.w3.org/TR/SVG/fonts.html#FontFaceElement
12  *
13  * Authors:
14  *    Felipe C. da S. Sanches <felipe.sanches@gmail.com>
15  *
16  * Copyright (C) 2008 Felipe C. da S. Sanches
17  *
18  * Released under GNU GPL, read the file 'COPYING' for more information
19  */
21 #include "sp-object.h"
23 #define SP_TYPE_FONTFACE (sp_fontface_get_type ())
24 #define SP_FONTFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_FONTFACE, SPFontFace))
25 #define SP_FONTFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_FONTFACE, SPFontFaceClass))
26 #define SP_IS_FONTFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_FONTFACE))
27 #define SP_IS_FONTFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_FONTFACE))
29 enum FontFaceUnicodeRangeType{
30         FONTFACE_UNICODERANGE_FIXME_HERE,
31 };
33 struct SPFontFace : public SPObject {
34     std::vector<FontFaceUnicodeRangeType> unicode_range;
35     double units_per_em;
36     std::vector<int> panose_1;
37     double stemv;
38     double stemh;
39     double slope;
40     double cap_height;
41     double x_height;
42     double accent_height;
43     double ascent;
44     double descent;
45     char* widths;
46     char* bbox;
47     double ideographic;
48     double alphabetic;
49     double mathematical;
50     double hanging;
51     double v_ideographic;
52     double v_alphabetic;
53     double v_mathematical;
54     double v_hanging;
55     double underline_position;
56     double underline_thickness;
57     double strikethrough_position;
58     double strikethrough_thickness;
59     double overline_position;
60     double overline_thickness;
61 };
63 struct SPFontFaceClass {
64         SPObjectClass parent_class;
65 };
67 GType sp_fontface_get_type (void);
69 #endif //#ifndef __SP_FONTFACE_H__
70 #endif //#ifdef ENABLE_SVG_FONTS