Lines Matching refs:repr
21 #include "xml/repr.h"
317 void SPFontFace::build(SPDocument *document, Inkscape::XML::Node *repr) {
318 SPObject::build(document, repr);
738 Inkscape::XML::Node* SPFontFace::write(Inkscape::XML::Document *xml_doc, Inkscape::XML::Node *repr, guint flags) {
739 if ((flags & SP_OBJECT_WRITE_BUILD) && !repr) {
740 repr = xml_doc->createElement("svg:font-face");
744 //sp_repr_set_svg_double(repr, "font-family", face->font_family);
745 //sp_repr_set_svg_double(repr, "font-style", face->font_style);
746 //sp_repr_set_svg_double(repr, "font-variant", face->font_variant);
747 //sp_repr_set_svg_double(repr, "font-weight", face->font_weight);
748 //sp_repr_set_svg_double(repr, "font-stretch", face->font_stretch);
749 //sp_repr_set_svg_double(repr, "font-size", face->font_size);
750 //sp_repr_set_svg_double(repr, "unicode-range", face->unicode_range);
751 sp_repr_set_svg_double(repr, "units-per-em", this->units_per_em);
752 //sp_repr_set_svg_double(repr, "panose-1", face->panose_1);
753 sp_repr_set_svg_double(repr, "stemv", this->stemv);
754 sp_repr_set_svg_double(repr, "stemh", this->stemh);
755 sp_repr_set_svg_double(repr, "slope", this->slope);
756 sp_repr_set_svg_double(repr, "cap-height", this->cap_height);
757 sp_repr_set_svg_double(repr, "x-height", this->x_height);
758 sp_repr_set_svg_double(repr, "accent-height", this->accent_height);
759 sp_repr_set_svg_double(repr, "ascent", this->ascent);
760 sp_repr_set_svg_double(repr, "descent", this->descent);
761 //sp_repr_set_svg_double(repr, "widths", face->widths);
762 //sp_repr_set_svg_double(repr, "bbox", face->bbox);
763 sp_repr_set_svg_double(repr, "ideographic", this->ideographic);
764 sp_repr_set_svg_double(repr, "alphabetic", this->alphabetic);
765 sp_repr_set_svg_double(repr, "mathematical", this->mathematical);
766 sp_repr_set_svg_double(repr, "hanging", this->hanging);
767 sp_repr_set_svg_double(repr, "v-ideographic", this->v_ideographic);
768 sp_repr_set_svg_double(repr, "v-alphabetic", this->v_alphabetic);
769 sp_repr_set_svg_double(repr, "v-mathematical", this->v_mathematical);
770 sp_repr_set_svg_double(repr, "v-hanging", this->v_hanging);
771 sp_repr_set_svg_double(repr, "underline-position", this->underline_position);
772 sp_repr_set_svg_double(repr, "underline-thickness", this->underline_thickness);
773 sp_repr_set_svg_double(repr, "strikethrough-position", this->strikethrough_position);
774 sp_repr_set_svg_double(repr, "strikethrough-thickness", this->strikethrough_thickness);
775 sp_repr_set_svg_double(repr, "overline-position", this->overline_position);
776 sp_repr_set_svg_double(repr, "overline-thickness", this->overline_thickness);
778 if (repr != this->getRepr()) {
781 COPY_ATTR(repr, this->getRepr(), "font-family");
782 COPY_ATTR(repr, this->getRepr(), "font-style");
783 COPY_ATTR(repr, this->getRepr(), "font-variant");
784 COPY_ATTR(repr, this->getRepr(), "font-weight");
785 COPY_ATTR(repr, this->getRepr(), "font-stretch");
786 COPY_ATTR(repr, this->getRepr(), "font-size");
787 COPY_ATTR(repr, this->getRepr(), "unicode-range");
788 COPY_ATTR(repr, this->getRepr(), "units-per-em");
789 COPY_ATTR(repr, this->getRepr(), "panose-1");
790 COPY_ATTR(repr, this->getRepr(), "stemv");
791 COPY_ATTR(repr, this->getRepr(), "stemh");
792 COPY_ATTR(repr, this->getRepr(), "slope");
793 COPY_ATTR(repr, this->getRepr(), "cap-height");
794 COPY_ATTR(repr, this->getRepr(), "x-height");
795 COPY_ATTR(repr, this->getRepr(), "accent-height");
796 COPY_ATTR(repr, this->getRepr(), "ascent");
797 COPY_ATTR(repr, this->getRepr(), "descent");
798 COPY_ATTR(repr, this->getRepr(), "widths");
799 COPY_ATTR(repr, this->getRepr(), "bbox");
800 COPY_ATTR(repr, this->getRepr(), "ideographic");
801 COPY_ATTR(repr, this->getRepr(), "alphabetic");
802 COPY_ATTR(repr, this->getRepr(), "mathematical");
803 COPY_ATTR(repr, this->getRepr(), "hanging");
804 COPY_ATTR(repr, this->getRepr(), "v-ideographic");
805 COPY_ATTR(repr, this->getRepr(), "v-alphabetic");
806 COPY_ATTR(repr, this->getRepr(), "v-mathematical");
807 COPY_ATTR(repr, this->getRepr(), "v-hanging");
808 COPY_ATTR(repr, this->getRepr(), "underline-position");
809 COPY_ATTR(repr, this->getRepr(), "underline-thickness");
810 COPY_ATTR(repr, this->getRepr(), "strikethrough-position");
811 COPY_ATTR(repr, this->getRepr(), "strikethrough-thickness");
812 COPY_ATTR(repr, this->getRepr(), "overline-position");
813 COPY_ATTR(repr, this->getRepr(), "overline-thickness");
816 SPObject::write(xml_doc, repr, flags);
818 return repr;