On Thursday 24 May 2001 12:36, [EMAIL PROTECTED] wrote: > Hi Batik Experts! > > I've been using Dia, the GNOME drawing program, to produce SVG which > I've converted to PDF using FOP. This works OK. Now I'm trying to > convert the same SVG to PNGs using Batik for a web version of the same > document. After a few hacks it very nearly works, but text is broken. > > This is displayed OK: > > <svg width="15cm" height="11cm"> > <text style="fill: #000000; font-size: 1cm;" x="10%" y="20%">Foo</text> > </svg> > > And if I cnage the font-size the text scales properly. However, the output > from Dia uses a viewBox to define a co-ordinate system where 1 unit is > 1 cm, and then specifies the font size without a unit, like this: > > <svg width="15cm" height="11cm" viewBox="0 0 15 11"> > <text style="fill: #000000; font-size: 1;" x="10%" y="20%">Foo</text> > </svg> > > This code works OK too, but it breaks when I change the font size. If I > reduce the font size to 0.5 it seems to be rendered using the same font as > when the font is set to 1 but with the letters jammed up together, and if I > reduce it below 0.5 the text disappears completely. > > I wonder if this could be a misfeature of the Batik font handling code? > Or am I doing something wrong? > > I'm using Batik 1.0 and my java claims to be "Java(TM) 2 Runtime > Environment, Standard Edition (build 1.3.0_02)". I'm running on Linux. > When I start Batik I get this message a few times: > > Font specified in font.properties not found > [--symbol-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] > > - but it's only complaining about this symbol font. > > Please let me know what you think. I think you are right and we have to fix something there... I will work on that ASAP. Thierry. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
