xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron McCormack <...@mcc.id.au>
Subject Re: font size question
Date Mon, 18 Apr 2011 00:15:06 GMT
Hi Christian.

Christian Convey:
> A few months ago I found that Firefox and Chromium were rendering my
> Batik-generated SVG files differently.  Someone on this list kindly
> pointed out the problem: My font size (in the .svg file) was listed as
> "10", not "10px".  (See example below.)
> Any suggestions for what I do in Java to make the "px" suffix appear
> in my svg file's font size(s)?

This is https://issues.apache.org/bugzilla/show_bug.cgi?id=50100, which
was fixed a couple of months ago.  You’ll need to grab the source from
Subversion to have this fix.  If you can’t get the latest code from
Subversion, you can work around this issue by setting useCss to false to
make SVGGraphics2D use presentation attributes instead of the style=""
attribute; presentation attributes are allowed to omit units from
lengths, so browsers will be happy with them.

Cameron McCormack ≝ http://mcc.id.au/

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

View raw message