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

static SPTextStyle * sp_text_style_duplicate_unset ( SPTextStyle st  )  [static]

Return duplicate of text style.

Definition at line 2714 of file style.cpp.

References SPTextStyle::font, SPTextStyle::font_family, SPTextStyle::font_specification, SPTextStyle::refcount, and SPIString::value.

{
    SPTextStyle *nt = g_new0(SPTextStyle, 1);
    nt->refcount = 1;

    nt->font_specification.value = g_strdup(st->font_specification.value);
    nt->font.value = g_strdup(st->font.value);
    nt->font_family.value = g_strdup(st->font_family.value);

    return nt;
}


Generated by  Doxygen 1.6.0   Back to index