sp-font.cpp revision 6c32bcd8f899ac2e8a7eafba446d4181c1b16d48
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#ifdef ENABLE_SVG_FONTS
/*
* SVG <font> element implementation
*
* Author:
* Felipe C. da S. Sanches <juca@members.fsf.org>
*
* Copyright (C) 2008, Felipe C. da S. Sanches
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "attributes.h"
#include "sp-font.h"
#include "sp-glyph.h"
#include "sp-missing-glyph.h"
#include "document.h"
#include "display/nr-svgfonts.h"
static Inkscape::XML::Node *sp_font_write(SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags);
static void sp_font_child_added(SPObject *object, Inkscape::XML::Node *child, Inkscape::XML::Node *ref);
// static gchar *sp_font_description(SPItem *item);
static SPObjectClass *parent_class;
GType sp_font_get_type(void)
{
if (!type) {
sizeof(SPFontClass),
NULL, /* base_init */
NULL, /* base_finalize */
NULL, /* class_finalize */
NULL, /* class_data */
sizeof(SPFont),
16, /* n_preallocs */
NULL, /* value_table */
};
}
return type;
}
{
}
//I think we should have extra stuff here and in the set method in order to set default value as specified at http://www.w3.org/TR/SVG/fonts.html
{
font->horiz_origin_x = 0;
font->horiz_origin_y = 0;
}
{
}
}
{
}
/**
* Callback for child_added event.
*/
static void
{
}
/**
* Callback for remove_child event.
*/
static void
{
}
{
//SPFont *font = SP_FONT(object);
}
}
{
// TODO these are floating point, so some epsilon comparison would be good
switch (key) {
case SP_ATTR_HORIZ_ORIGIN_X:
{
}
break;
}
case SP_ATTR_HORIZ_ORIGIN_Y:
{
}
break;
}
case SP_ATTR_HORIZ_ADV_X:
{
}
break;
}
case SP_ATTR_VERT_ORIGIN_X:
{
}
break;
}
case SP_ATTR_VERT_ORIGIN_Y:
{
}
break;
}
case SP_ATTR_VERT_ADV_Y:
{
}
break;
}
default:
}
break;
}
}
/**
* Receives update notifications.
*/
static void
{
if (flags & (SP_OBJECT_MODIFIED_FLAG)) {
}
}
}
static Inkscape::XML::Node *sp_font_write(SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags)
{
}
}
}
return repr;
}
#endif //#ifdef ENABLE_SVG_FONTS
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :