Hi Chris,

> [...] but when I open the file with a
> browser it doesn't open correctly(have tried
> both Firefox and Opera, just done 'File,Open'). I have attached a
> snapshot of how the file is displayed in Firefox,
> the chart is squashed(exact same in Opera). But when I open it in
> InkScape(SVG graphics editor) it opens perfectly.

I'm not sure what you mean with "squashed". Can you elaborate a bit
[1]? Also, you have attached a screenshot of how it displays
unexpectedly but not a screenshot of how you expected it to be. In the
absence of the resulting SVG file, this triggers the "guys, guess
what's happening!" mode. ;-)

Nevertheless, my quick "guess" is that no particular "squashing" is
happening: I can only see text overflowing other graphics content. If
so, then you are simply suffering from a common issue with graphics in
general which is text formatting/alignment. Note that if you don't
specify font and font-size property, the implementation will use a
fallback font family/font size which will then vary and may yield such
unexpected results. As a quick fix attempt, set a default font
behavior by setting the "font-family" (remember to include a generic
font family [2]) and "font-size" attributes in the root "svg" element,
as in:

<svg [...] font-family="Helvetica, Arial, Tahoma, sans-serif" font-size="11">
  [remaining graphics]
</svg>


> Any info appreciated.

Hope this helps,
 Helder


[1] http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
[2] http://www.w3.org/TR/CSS2/fonts.html#generic-font-families

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org

Reply via email to