sp-glyph-kerning.cpp revision 43d06c7da14a174c6b2b41f9849b0cf098de4770
0N/A#ifdef ENABLE_SVG_FONTS
0N/A#define __SP_ANCHOR_C__
0N/A#include "attributes.h"
0N/A#include "sp-glyph-kerning.h"
#include "document.h"
#include "helper-fns.h"
static void sp_glyph_kerning_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr);
static Inkscape::XML::Node *sp_glyph_kerning_write(SPObject *object, Inkscape::XML::Document *doc, Inkscape::XML::Node *repr, guint flags);
if (!type) {
sizeof(SPGlyphKerningClass),
sizeof(SPHkern),
return type;
if (!type) {
sizeof(SPGlyphKerningClass),
sizeof(SPVkern),
return type;
glyph->k = 0;
static void sp_glyph_kerning_build(SPObject *object, SPDocument *document, Inkscape::XML::Node *repr)
SPGlyphKerning * glyphkern = (SPGlyphKerning*) object; //even if it is a VKern this will work. I did it this way just to avoind warnings.
double number;
switch (key) {
case SP_ATTR_U1:
case SP_ATTR_U2:
case SP_ATTR_G1:
case SP_ATTR_G2:
case SP_ATTR_K:
(void)glyph;
static Inkscape::XML::Node *sp_glyph_kerning_write(SPObject *object, Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags)
/* I am commenting out this part because I am not certain how does it work. I will have to study it later. Juca
return repr;