Detlef Amberg

Greenhorn
+ Follow
since Jan 17, 2011
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Detlef Amberg

>>>They're still arguing...

No, David Cameron provided a fix:

>>>
http://mcc.id.au/batik-nightly/
Ensure font-size is serialized with "px" units by SVGGraphics2D. (This will
be the case regardless of 'useCss', even though it is only needed for
'useCss = true'.)
Fixes bug 50100.
<<<

But i's not yet in the released version, sure.

Cheers
Detlef

I embedded the fonts and it did not work, either.

But I found a ad hoc solution: I used 'useCSS=false' in the generating Java script, that helped. A longer term solution is a fix in the batik-sources, that was introduced some days ago and is discussed in the batik forum.


Cheers
Detlef
Hi,

I generate a .svg file using batik. 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