Hi Martin,
>>>>>
How do you generate the SVG?
<<<<<
I'm not sure what you mean.
I create a SVG Generator like this and plot the graphics to it:
>>>>>>>>>
// Create an instance of the SVG Generator.
SVGGraphics2D svgGenerator = new SVGGraphics2D(document);
ggg.run(svgGenerator);
<<<<<<<<<<
For setting the font-size I use
g.setFont(new Font("Times New Roman", Font.PLAIN, 30));
on 'Graphics g'
Hope that clarifies.
THX
Detlef
Am 15.01.2011 10:15, schrieb Martin Jacobson:
> 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, [email protected] <[email protected]> wrote:
>> Hi,
>>
>> I generate a .svg file. In this file the font size is tailored:
>>
>>> <g style="font-family:'Times New Roman'; font-size:30;"
>>
>> The browser (firefox, chrome works ok)ignores the fontsize.
>>
>> It exspects
>>> <g style="font-family:'Times New Roman'; 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: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]