Lines Matching defs:font
31 #include "sp-font-face.h"
38 #include "sp-font.h"
279 row[_columns.label] = lbl ? lbl : (id ? id : "font");
308 SPFont* font = get_selected_spfont();
309 if (!font) return;
312 for (obj=font->children; obj; obj=obj->next){
446 SPGlyph *new_glyph(SPDocument* document, SPFont *font, const int count)
448 g_return_val_if_fail(font != NULL, NULL);
459 // Append the new glyph node to the current font
460 font->getRepr()->appendChild(repr);
473 SPFont* font = get_selected_spfont();
474 if (!font) return;
477 first_glyph.update(font);
478 second_glyph.update(font);
643 SPFont* font = get_selected_spfont();
644 if (!font) return;
647 sp_repr_unparent(font->getRepr());
649 DocumentUndo::done(doc, SP_VERB_DIALOG_SVG_FONTS, _("Remove font"));
739 //look for this kerning pair on the currently selected font
763 // Append the new hkern node to the current font
822 // create a new font
823 Inkscape::XML::Node *repr = xml_doc->createElement("svg:font");
828 // Append the new font node to defs
833 fontface = xml_doc->createElement("svg:font-face");
853 void set_font_family(SPFont* font, char* str){
854 if (!font) return;
856 for (obj=font->children; obj; obj=obj->next){
859 obj->getRepr()->setAttribute("font-family", str);
863 DocumentUndo::done(font->document, SP_VERB_DIALOG_SVG_FONTS, _("Set font family"));
868 SPFont* font = new_font(doc);
872 os << _("font") << " " << count;
873 font->setLabel(os.str().c_str());
877 for (obj=font->children; obj; obj=obj->next){
880 obj->getRepr()->setAttribute("font-family", os2.str().c_str());
885 // select_font(font);
887 DocumentUndo::done(doc, SP_VERB_DIALOG_SVG_FONTS, _("Add font"));