<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Dee,<br>
<br>
Same problem as for double quotes:-<br>
java.lang.RuntimeException: com.renderx.fonts.BadFontDataException:
Could not obtain font metric for font family 'OCR-B (CBA)'<br>
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3363)<br>
at
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:427)<br>
at com.renderx.sax.SAXStorage$EndDocumentRecord.play(Unknown Source)<br>
at com.renderx.sax.SAXStorage.play(Unknown Source)<br>
at
com.renderx.xep.FormatterCore$ContentHandlerDriver.endDocument(Unknown
Source)<br>
<br>
Cheers,<br>
Justin.<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:Dee_Beck@McAfee.com">Dee_Beck@McAfee.com</a> wrote:
<blockquote
cite="mid2069DE2C1E4BD64CABAB75F191A2B99309746C2E@beaexmb1.corp.nai.org"
type="cite">
<title></title>
<meta http-equiv="Content-Type" content="text/html; ">
<meta content="MSHTML 6.00.2900.3086" name="GENERATOR">
<div dir="ltr" align="left"><span class="809573606-10052007"><font
color="#0000ff" face="Arial" size="2">Justin, Have you tried enclosing
the name in single quotes? ~Dee</font></span></div>
<div dir="ltr" align="left"><span class="809573606-10052007"><font-family
name=" ' OCR-B (CBA) ' "></span></div>
<br>
<div class="OutlookMessageHeader" dir="ltr" align="left" lang="en-us">
<hr tabindex="-1"><font face="Tahoma" size="2"><b>From:</b>
<a class="moz-txt-link-abbreviated" href="mailto:owner-xep-support@renderx.com">owner-xep-support@renderx.com</a> [<a class="moz-txt-link-freetext" href="mailto:owner-xep-support@renderx.com">mailto:owner-xep-support@renderx.com</a>] <b>On
Behalf Of </b>Justin Lipton<br>
<b>Sent:</b> Wednesday, May 09, 2007 9:38 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:xep-support@renderx.com">xep-support@renderx.com</a><br>
<b>Subject:</b> [xep-support] Font names with parentheses in them<br>
</font><br>
</div>
Hi,<br>
<br>
Of late our good friends at Microsoft have taken to putting parentheses
in font names - "Arial (W1)" is an example that keeps coming up.<br>
Unfortunately these seems to break XEP 4.9<br>
<br>
Here's the font definition fragment from my xep.xml<br>
<br>
<pre><font-group xml:base=<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="file:/tmp/">"file:/tmp/"</a> label="Windows TrueType" embed="true" subset="true"></pre>
<pre> <font-family name="OCR-B (CBA)"></pre>
<pre> <font><font-data ttf="TT0646Z_.ttf"/></font></pre>
<pre> </font-family></pre>
<pre></font-group></pre>
<br>
My relevant xsl:fo fragment looks like this:<br>
<br>
<pre><fo:block id="Paragraph_2" background-color="transparent"
space-before="0pt" space-after="1.0E-4pt" line-height="120%"
color="black" margin-right="0pt" margin-left="0pt" font-size="12pt"
font-family="OCR-B (CBA), Symbol, serif" font-weight="normal"
text-align="left" text-indent="0pt" white-space-collapse="false">
BTW OCR-B (CBA) rocks </fo:block></pre>
<br>
XEP Warnings are:<br>
<br>
<pre>XEP Warning: Unexpected token in font-family: FUNCTOR</pre>
<pre>XEP Warning: Unexpected token in font-family: RIGHT PARENTHESIS</pre>
<br>
and I get no PDF output.<br>
<br>
I've also tried escaping the parentheses:<br>
<pre><fo:block id="Paragraph_2" background-color="transparent"
space-before="0pt" space-after="1.0E-4pt" line-height="120%"
color="black" margin-right="0pt" margin-left="0pt" font-size="12pt"
font-family="OCR-B \(CBA\), Symbol, serif" font-weight="normal"
text-align="left" text-indent="0pt" white-space-collapse="false">BTW
OCR-B (CBA) rocks </fo:block></pre>
<br>
to no avail.<br>
<br>
Renaming the font to remove the parentheses resolves the issue.<br>
Is this a bug? - Any help would be appreciated.<br>
<br>
Regards,<br>
Justin.<br>
<br>
<br>
<div class="moz-signature">-- <br>
<basefont face="Arial, Helvetica, sans-serif" color="#666666" size="2">
<div>
<p style="font-family: sans-serif;" align="left"><strong>Justin Lipton</strong><br>
<a href="mailto:justin.lipton@exari.com">justin.lipton@exari.com</a><br>
Level 7, 10-16 Queen Street, Melbourne 3000 Australia <br>
Tel +61 3 9621 2775 | Fax +61 3 9621 2776 <br>
</p>
</div>
<div>
<p style="font-family: sans-serif;" align="left"><strong>Exari Systems</strong><br>
London | Melbourne | San Francisco <br>
<a href="http://www.exari.com">www.exari.com</a></p>
<p style="font-family: sans-serif;" align="left"><strong>Really
Important Notice</strong><br>
<small>Actually, this is only important if this email was sent to you
by mistake or if someone sent it to you when they shouldn't have. If
you got it by mistake, please reply and tell us so we can re-send it to
the right person. If you got it from someone who should know better,
please tell them they're in big trouble. In either case, please don't
forward it on to anyone else. Or print it. Or talk about it. Otherwise
you'll be in big trouble too.</small><br>
<br>
<a href="http://www.exari.com/document-assembly.html"><img
alt="exari logo" src="cid:part1.04020901.07000200@exari.com"
align="bottom" border="0" height="24" width="72"></a><br>
</p>
</div>
</div>
!DSPAM:4642c523307371079541270!
</blockquote>
<br>
<div class="moz-signature">-- <br>
<title>Exari Signature</title>
<basefont size="2" face="Arial, Helvetica, sans-serif" color="#666666">
<div>
<p style="font-family: sans-serif;" align="left"> <strong>Justin Lipton</strong><br>
<a href="mailto:justin.lipton@exari.com">justin.lipton@exari.com</a><br>
Level 7, 10-16 Queen Street, Melbourne 3000 Australia <br>
Tel +61 3 9621 2775 | Fax +61 3 9621 2776 <br>
</p>
</div>
<div>
<p style="font-family: sans-serif;" align="left"> <strong>Exari Systems</strong><br>
London | Melbourne | San Francisco <br>
<a href="http://www.exari.com">www.exari.com</a></p>
<p style="font-family: sans-serif;" align="left"><strong>Really
Important Notice</strong><br>
<small>Actually, this is only important if this email was sent to you
by mistake or if someone sent it to you when they shouldn't have. If
you got it by mistake, please reply and tell us so we can re-send it to
the right person. If you got it from someone who should know better,
please tell them they're in big trouble. In either case, please don't
forward it on to anyone else. Or print it. Or talk about it. Otherwise
you'll be in big trouble too.</small><br>
<br>
<a href="http://www.exari.com/document-assembly.html"><img
alt="exari logo" src="cid:part2.03050007.03040403@exari.com"
align="bottom" border="0" height="24" width="72"></a><br>
</p>
</div>
</div>
</body>
</html>