Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

static guint sp_text_style_write ( gchar *  p,
guint const   len,
SPTextStyle const *const   st,
guint  flags 
) [static]

Write SPTextStyle object into string.

Definition at line 2732 of file style.cpp.

References SPTextStyle::font_family, SPTextStyle::font_specification, and sp_style_write_istring().

Referenced by sp_style_write_difference(), and sp_style_write_string().

{
    gint d = 0;

    // We do not do diffing for text style
    if (flags == SP_STYLE_FLAG_IFDIFF)
        flags = SP_STYLE_FLAG_IFSET;

    d += sp_style_write_istring(p + d, len - d, "font-family", &st->font_family, NULL, flags);
    d += sp_style_write_istring(p + d, len - d, "-inkscape-font-specification", &st->font_specification, NULL, flags);
    return d;
}


Generated by  Doxygen 1.6.0   Back to index