RE: [xep-support] Font names with parentheses in them

From: <Dee_Beck@McAfee.com>
Date: Wed May 09 2007 - 23:40:11 PDT

Justin, Have you tried enclosing the name in single quotes? ~Dee
<font-family name=" ' OCR-B (CBA) ' ">

________________________________

From: owner-xep-support@renderx.com
[mailto:owner-xep-support@renderx.com] On Behalf Of Justin Lipton
Sent: Wednesday, May 09, 2007 9:38 PM
To: xep-support@renderx.com
Subject: [xep-support] Font names with parentheses in them

Hi,

Of late our good friends at Microsoft have taken to putting parentheses
in font names - "Arial (W1)" is an example that keeps coming up.
Unfortunately these seems to break XEP 4.9

Here's the font definition fragment from my xep.xml

<font-group xml:base="file:/tmp/" <file:/tmp/> label="Windows TrueType"
embed="true" subset="true">
        <font-family name="OCR-B (CBA)">
            <font><font-data ttf="TT0646Z_.ttf"/></font>
        </font-family>
</font-group>

My relevant xsl:fo fragment looks like this:

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

XEP Warnings are:

XEP Warning: Unexpected token in font-family: FUNCTOR
XEP Warning: Unexpected token in font-family: RIGHT PARENTHESIS

and I get no PDF output.

I've also tried escaping the parentheses:

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

to no avail.

Renaming the font to remove the parentheses resolves the issue.
Is this a bug? - Any help would be appreciated.

Regards,
Justin.

-- 
Justin Lipton
justin.lipton@exari.com
Level 7, 10-16 Queen Street, Melbourne 3000 Australia 
Tel +61 3 9621 2775 | Fax +61 3 9621 2776 
Exari Systems
London | Melbourne | San Francisco 
www.exari.com
Really Important Notice
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.
  <http://www.exari.com/document-assembly.html> 

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html

exari-clr-24.gif
Received on Thu May 10 00:24:15 2007

This archive was generated by hypermail 2.1.8 : Thu May 10 2007 - 00:24:16 PDT