@ -2278,9 +2278,12 @@ void UBSvgSubsetAdaptor::UBSvgSubsetWriter::textItemToSvg(UBGraphicsTextItem* it
// But a different solution has to be implemented to avoid some annoying case that
// But a different solution has to be implemented to avoid some annoying case that
// are already present with this hack.
// are already present with this hack.
QString htmlString = item - > toHtml ( ) ;
QString htmlString = item - > toHtml ( ) ;
qDebug ( ) < < htmlString ;
QRegExp regExp ( " font-size:([0-9]{,3}) pt " ) ;
QRegExp regExp ( " font-size:([0-9]{,3}) pt " ) ;
htmlString = htmlString . replace ( regExp , " font-size: \\ 1px " ) ;
htmlString = htmlString . replace ( regExp , " font-size: \\ 1px " ) ;
mXmlWriter . writeCDATA ( htmlString ) ;
qDebug ( ) < < htmlString ;
//mXmlWriter.writeCDATA(htmlString);
mXmlWriter . writeCharacters ( htmlString ) ;
mXmlWriter . writeEndElement ( ) ; //itemTextContent
mXmlWriter . writeEndElement ( ) ; //itemTextContent
mXmlWriter . writeEndElement ( ) ; //foreignObject
mXmlWriter . writeEndElement ( ) ; //foreignObject