--- SvgExporterPG.js-temp 2011-08-27 13:50:15.609517014 +0200 +++ SvgExporterPG.js 2011-08-27 13:50:25.719516748 +0200 @@ -337,6 +337,12 @@ SvgExporterPG.prototype.writeFontAttributes = function() { this.writeAttribute("font-family", this.text.getFontName()); var h = this.convert(this.text.getTextHeight()); + if (this.text.isBold()) { + this.writeAttribute("font-weight", "bold"); + } + if (this.text.isItalic()) { + this.writeAttribute("font-style", "italic"); + } // this.writeAttribute("font-size", h); this.writeAttribute("font-size", h * 1.4); // why 1.4? // this.writeAttribute("line-height", this.text.getLineSpacingFactor() * 1.1);