#ifndef __SP_FONTFACE_H__ #define __SP_FONTFACE_H__ /* * SVG element implementation * * Section 20.8.3 of the W3C SVG 1.1 spec * available at: * http://www.w3.org/TR/SVG/fonts.html#FontFaceElement * * Authors: * Felipe C. da S. Sanches * * Copyright (C) 2008 Felipe C. da S. Sanches * * Released under GNU GPL, read the file 'COPYING' for more information */ #include "sp-object.h" #define SP_TYPE_FONTFACE (sp_fontface_get_type ()) #define SP_FONTFACE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), SP_TYPE_FONTFACE, SPFontFace)) #define SP_FONTFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), SP_TYPE_FONTFACE, SPFontFaceClass)) #define SP_IS_FONTFACE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), SP_TYPE_FONTFACE)) #define SP_IS_FONTFACE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), SP_TYPE_FONTFACE)) enum FontFaceUnicodeRangeType{ FONTFACE_UNICODERANGE_FIXME_HERE, }; struct SPFontFace : public SPObject { std::vector unicode_range; double units_per_em; std::vector panose_1; double stemv; double stemh; double slope; double cap_height; double x_height; double accent_height; double ascent; double descent; char* widths; char* bbox; double ideographic; double alphabetic; double mathematical; double hanging; double v_ideographic; double v_alphabetic; double v_mathematical; double v_hanging; double underline_position; double underline_thickness; double strikethrough_position; double strikethrough_thickness; double overline_position; double overline_thickness; }; struct SPFontFaceClass { SPObjectClass parent_class; }; GType sp_fontface_get_type (void); #endif //#ifndef __SP_FONTFACE_H__