You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Nishu <ni...@cisco.com> on 2011/03/22 00:15:50 UTC

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

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

Does Batik has fix for this issue?
Can any one please point me to Batik jar which has fix for this issue?

Thanks,
Nishu

--
View this message in context: http://batik.2283329.n4.nabble.com/Batik-1-7-latest-version-having-Font-Family-names-with-digits-in-them-cause-Batik-to-throw-exception-tp3395066p3395066.html
Sent from the Batik - Users mailing list archive at Nabble.com.

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


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

Posted by Chris Lilley <ch...@w3.org>.
On Tuesday, March 22, 2011, 6:15:42 PM, Nishu wrote:

NB> Hi Chris,


NB> Thanks for your reply.

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

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

Yes, but really the bug is not in Batik. It was a bug in CSS2, now corrected in CSS 2.1.

NB> MY images are coming from database and I can't modify the font-family there.

you don't have to modify it, just include the name correctly.

NB> DO you know any other work around to this problem?


NB> Thanks,
NB> Nishu Bansal

NB> -----Original Message-----
NB> From: Chris Lilley [mailto:chris@w3.org] 
NB> Sent: Tuesday, March 22, 2011 6:35 AM
NB> To: Nishu
NB> Cc: batik-users@xmlgraphics.apache.org
NB> Subject: Re: Batik 1.7 latest version having Font Family names with digits
NB> in them cause Batik to throw exception

NB> 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
NB> 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.

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

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

NB> Due to fairly recent changes in CSS 2.1, quoting is needed for numbers as
NB> 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


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


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

Posted by Nishu Bansal <ni...@cisco.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:chris@w3.org] 
Sent: Tuesday, March 22, 2011 6:35 AM
To: Nishu
Cc: batik-users@xmlgraphics.apache.org
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


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


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

Posted by Chris Lilley <ch...@w3.org>.
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


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


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

Posted by Cameron McCormack <ca...@mcc.id.au>.
Nishu:
> I have used font-family="MS Shell Dlg 2" in SVG which leads to issue.
> font-family without integer works fine.
> 
> Does Batik has fix for this issue?  Can any one please point me to
> Batik jar which has fix for this issue?

It’s a known issue:

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

In the meantime, you can work around the problem by quoting the font
family name: font-family="'MS Shell Dlg 2'".

-- 
Cameron McCormack ≝ http://mcc.id.au/

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