A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Powerpoint, Publisher and Visio » Visio
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

SVG xlink namespace bug: still in Visio 2007



 
 
Thread Tools Display Modes
  #11  
Old August 24th, 2009, 08:52 AM posted to microsoft.public.visio.general
Nikolay Belyh
external usenet poster
 
Posts: 6
Default SVG xlink namespace bug: still in Visio 2007


You should set the font-size units not to "pt" but to "px" (PIXELS).
Or re-map pixels to points.


BTW, this seems to be exactly the issue: Visio SVG export assumes the
default font size units to be "px" (pixels), while Firefox/Opera/
Chrome assume the default font size units to be "pt" (points).
Unfortunately I haven't found in the SVG spec which assumption is the
correct one; but anyways, it would be really nice of Visio to specify
the measurement units explicitly... I mean, since 12pt ~ 16px, we have
this rendering problem! Since this problem requires typling only only
2 extra characters, unlike 41 extra characters for the
"xmlns:xlink='http://www.w3.org/1999/xlink'", probably it has better
chances of being fixed in 2010? ;D

Kind regards, Nikolay.
  #12  
Old August 24th, 2009, 04:16 PM posted to microsoft.public.visio.general
Adam[_15_]
external usenet poster
 
Posts: 7
Default SVG xlink namespace bug: still in Visio 2007

On Aug 23, 11:07*pm, Nikolay Belyh wrote:
Not that it matters much. The incomprehensible use of multiple styles
seems designed to make any Visio-generated SVG look terrible. I don't
see that Visio - SVG is of any real use at all---time to use some
other tool for this task.


You should set the font-size units not to "pt" but to "px" (PIXELS).


Ok.

BTW, I believe that Microsoft initially tested the SVG export with ASV
(adobe svg viewer), because with IE + ASV it works just perfectly
without any additional "fixtures"... But unfortunately since ASV has
gone for good (ADOBE discontinued it last year), it would be really
nice to make Visio generate SVG properly...


I think you're right. I expect that Adobe FrameMaker uses the Adobe
SVG Viewer to render SVG images, and the output from Visio renders
just fine. And back when the SVG export filter was developed, the
Adobe viewer was probably the best viewer out there (on Windows, at
least).

But the Visio SVG doesn't render perfectly in all cases. For example,
I have a block diagram that has a lot of two-line text, e.g.,

Some
Text

Even though the text has the same font settings in Visio for the top
and bottom lines, Visio insists on applying different styles to each
line in the SVG file, e.g., ".st2" for the top and ".st3" for the
bottom. The styles are defined like this:

.st2 {fill:#000000;font-family:Arial;font-size:0.666664em}
.st3 {font-size:1em}

Adobe SVG Viewer seems to be the only viewer that can render this in
any sort of reasonable way (I've tried several). Any ideas on this new
madness?

-Adam
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:04 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.