xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Jacobson <jacobson.mar...@gmail.com>
Subject Re: Batik font scaling: no px or pt suffix
Date Sat, 15 Jan 2011 09:15:43 GMT
Firefox is correct, but 'picky': CSS size attributes are supposed to
have a unit - only the value 0 derogates from this.
OTOH, surely adding the text 'pt' is trivial? How do you generate the SVG?
Martin

On 14 January 2011 22:23, Detlef.Amberg@gmx.de <Detlef.Amberg@gmx.de> wrote:
> Hi,
>
> I generate a .svg file. In this file the font size is tailored:
>
>><g style="font-family:&apos;Times New Roman&apos;; font-size:30;"
>
> The browser (firefox, chrome works ok)ignores the fontsize.
>
> It exspects
>><g style="font-family:&apos;Times New Roman&apos;; font-size:30px;"
> i.e appending a pt or px to the fontsize.
>
> How can I achieve this?
> I now use
> g.setFont(new Font("Times New Roman", Font.PLAIN, 30));
>
> JDK 1.6.0_18, jre6, Windows
>
> Thank you.
> Cheers
> Detlef
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>



-- 
>From my MacBook Pro

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


Mime
View raw message