Created attachment 120767 [details] font-size applied to text More information: http://www.w3.org/TR/SVG/coords.html#Units Some example attached
Created attachment 120768 [details] another sample from W3
@Xisco, * I know this is for your ongoing work on the import filter. Both the text.svg and Units.svg test files are a mess. But if instead inserting as image(s), the text.svg gets a horribly oversize bounding box. The Units.svg insert does seem correct. Stuart
Units.svg is also wrong at importing time as the two small boxes in abs. units are slighly different, but they should have the same size
(In reply to Xisco Faulí from comment #3) > Units.svg is also wrong at importing time as the two small boxes in abs. > units are slighly different, but they should have the same size OK, I see that now--and I know you weren't really focusing on the svgio insert filter. Really just a sidebar comment. The filter/source/svg really needs the Love you're giving it! Of course I'm happy to test anything.
After some investigation, I don't think there's a bug in svgio. When you compare it with Firefox or Chrome you can see some differences but not if you compare it with Inkscape. The reason is Chrome and Firefox use 96 pixel per inch while inkscape or svgio use 90, so I believe it's good as it's.
Created attachment 120790 [details] text units using dpi 90
Created attachment 120791 [details] how it looks in Inkscape
The first problem I see, apart from the obvious percentage problem, is that EM and EX units aren't displayed at all. That's due to the fact that the 'e' from 'em' or 'ex' is parsed as an exponential by the real_p in http://opengrok.libreoffice.org/xref/core/filter/source/svg/units.cxx#79. A fix is on its way.
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=fa17cfd7e006c73f1360a5a974f38d9875f347c5 tdf#96046 SVG: Parse 'em' and 'ex' units correctly It will be available in 5.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Created attachment 120819 [details] 72 vs 90
Created attachment 120820 [details] comparison 72 dpi vs 90 dpi
(Master is actually 5.2.0 now.)
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=33e49a3b6655c1503dc81b583f5016fc3b2fda19 tdf#96046 SVG: use the same PPI as in svgio It will be available in 5.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=796a904b6f3cfd7895e1763fdb043130a9c484ac tdf#96046 SVG: Fix problem when percentage depends ... It will be available in 5.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Created attachment 120922 [details] other properties unhandled
Created attachment 120940 [details] font-sizes unhandled
Migrating Whiteboard tags to Keywords: (filter:svgOpen)
Xisco Fauli committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=0cae9c32ce9884a9809e220ba80b7c4cb4059565 tdf#96046 SVG: Change logic to parse doubles correctly and.. It will be available in 5.2.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.