Created attachment 79148 [details]
image showing the behavior
XP, LO Version 22.214.171.124+
Text with sub-/superscript is cut where the sub-/superscript is and the sub-/superscript is shown as a single letter/sign with a much bigger text size
Created attachment 79149 [details]
file from Bug 62284
I can reproduce this using Linux Mint 15 x64 with LibreOffice 126.96.36.199 and Version: 188.8.131.52.alpha0+ Build ID: 66c315bcf2b78c4928d1e436d1a853f58f4cccd
Created attachment 86109 [details]
screenshot for attachment 79149 [details]
text is rendered correctly here
Build ID: f4d3954fc6106b3ae0ee16ab0fcde15d8cb945e3
I have the same problem when using an SVG created with Inkscape. I was able to track this down to the following line in the SVG:
Here, the font-size is specified in "%", which I think is incorrectly interpreted by LibreOffice as a pixel-size.
If I manually change this to let's say "10.5px" it looks better, even though the formating is still not correct.
I have taken a look at the SVG-file, which is already posted as attachment 79148 [details] to this bug. According to the header this file was also created using Inkscape. It also uses the exact same syntax with the font-size being specified in % of the main font-size:
PS.: This is in LO Version 184.108.40.206, Win7
Created attachment 92247 [details]
Adjustment to attachment 79149 [details]
I have taken attachment 79149 [details] and manually removed the font-sizes, which are specified as % and replaced them by px (e.g. font-size="75%" replaced by font-size="12px"). This resolves the issue of the huge fonts. The chemical formula is now almost rendered correct, but if you take a closer look you will see that baseline-shift="sub" is ignored. It seems that LO does not interpret all text attributes which are part of SVG 1.1 ...
Created attachment 115268 [details]
How it looks in upcomming 5.0
Looks fixed in upcomming LibreOffice 5.0 release.
Marking as RESOLVED WORKSFORME
Migrating Whiteboard tags to Keywords: (filter:svgInsert)