News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Enhanced SVG generation

Started by Nikolay, February 19, 2009, 07:54:41 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nikolay

Today's Visio SVG generation has some... ehr.. issues:

- Visio forgets to add "xlink" namespace reference to the generated SVG file, though it uses xlink namespace in SVG text (this is A PROBLEM that prevents some SVG (ones containing these "xlinks") generated with Visio from being rendered by most browsers). Only Adobe SVG viewer seem to overcome this issue.

- Visio forgets to add measurement units for some styles, which causes wrong font sizes being used in browsers. Obviously Visio considers the "numbers without units" being "pixels". This is a false assumption, because the "numbers without units" are interpreted as "points" in Firefox/Opera for example (not sure what does SVG standard says). Anyways, generating numbers without measurement units is no good.

- Firefox and Opera do seem to understand "em" measurement units in <tspan> element, with causes multiline text to collapse into single line in FF/Opera. Maybe this is even not supported by standard (not sure), but Visio generates SVG this way (though I believe this might be easily done other way), and only Adobe SVG viewer does understand that.

It would be nice if these points were fixed with the next release. ::)

Nikolay

#1
Hurra!!
"xlink" namespace is finally there for Visio 2010! :D

Unfortunately the second issue about "font-size:12;" still exists..
Means, please look at the picture that demonstrates the issue:


Browser ID: smf (is_webkit)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 157 (show)
Files included: 32 - 1207KB. (show)
Memory used: 1040KB.
Tokens: post-login.
Cache hits: 13: 0.00231s for 26,766 bytes (show)
Cache misses: 2: (show)
Queries used: 16.

[Show Queries]