[xep-support] Font names with parentheses in them

Dee_Beck at McAfee.com Dee_Beck at McAfee.com
Wed May 9 23:40:11 PDT 2007


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

________________________________

From: owner-xep-support at renderx.com
[mailto:owner-xep-support at renderx.com] On Behalf Of Justin Lipton
Sent: Wednesday, May 09, 2007 9:38 PM
To: xep-support at 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 at 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> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20070509/ca381d58/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exari-clr-24.gif
Type: image/gif
Size: 1790 bytes
Desc: exari-clr-24.gif
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20070509/ca381d58/attachment.gif>


More information about the Xep-support mailing list