RE: Batik 1.7 latest version having Font Family names with digits in them cause Batik to throw exception

"Nishu Bansal" <[email protected]>
Newsgroups gmane.text.xml.batik.user
Message-ID <002b01cbe8b4$c66eab50$534c01f0$@com>
Hi Chris,


Thanks for your reply.

I see that there was bug opened for this issue but I think not resolved.

https://issues.apache.org/bugzilla/show_bug.cgi?id=44828

MY images are coming from database and I can't modify the font-family there.
DO you know any other work around to this problem?


Thanks,
Nishu Bansal

-----Original Message-----
From: Chris Lilley [mailto:[email protected]] 
Sent: Tuesday, March 22, 2011 6:35 AM
To: Nishu
Cc: [email protected]
Subject: Re: Batik 1.7 latest version having Font Family names with digits
in them cause Batik to throw exception

On Tuesday, March 22, 2011, 12:15:50 AM, Nishu wrote:

N> I am facing issue with Batik 1.7 jar which is latest, when trying to
convert
N> SVG to JPEG.
N> I have used font-family="MS Shell Dlg 2" in SVG which leads to issue.
N> font-family without integer works fine.

Is the font family name quoted in the SVG? It needs to be; for example:

font-family="'MS Shell Dlg 2', serif"

Due to fairly recent changes in CSS 2.1, quoting is needed for numbers as
well as being usually needed for family names with spaces.


-- 
 Chris Lilley   Technical Director, Interaction Domain                 
 W3C Graphics Activity Lead, Fonts Activity Lead
 Co-Chair, W3C Hypertext CG
 Member, CSS, WebFonts, SVG Working Groups
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.