sp-font.cpp revision 77db05670a2747f32fe3168a6cfe332d906f4057
#define __SP_ANCHOR_C__
/*
* SVG <font> element implementation
*
* Author:
* Felipe C. da S. Sanches <felipe.sanches@gmail.com>
*
* 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 "document.h"
static Inkscape::XML::Node *sp_font_write(SPObject *object, Inkscape::XML::Node *repr, guint flags);
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;
}
{
}
{
font->horiz_origin_x = 0;
font->horiz_origin_y = 0;
font->horiz_adv_x = 0;
//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->vert_origin_x = 0;
font->vert_origin_y = 0;
font->vert_adv_y = 0;
}
{
}
}
{
//SPFont *font = SP_FONT(object);
}
}
//ToDo: use helper-fns.h
if (!value) return 0;
char *end;
if (*end) {
// We could leave this out, too. If strtod can't convert
// anything, it will return zero.
ret = 0;
}
return ret;
}
{
double number;
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;
}
}
{
}
}
}
return repr;
}
/*
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 :