[xep-support] Configuring Fonts on OS/X

From: Eliot Kimber <ekimber@reallysi.com>
Date: Wed Jan 30 2008 - 12:55:20 PST

I'm trying to configure fonts for use with the FO plugin for the DITA
Open Toolkit running under OS/X.

To start, I am not a Mac expert, so it's quite possible I am missing
something obvious.

But I tried this in my xep.xml file:

     <font-group xml:base="/Users/ekimber/Library/Fonts/" label="Mac
Fonts" embed="true" subset="true">
       <font-family name="Century Gothic">
         <font><font-data ttf="Century Gothic"/></font>
       </font-family>
       <font-family name="Century Schoolbook">
         <font><font-data ttf="Century Schoolbook"/></font>
       </font-family>
     </font-group>

     <font-group xml:base="/Library/Fonts/" label="Mac Fonts"
embed="true" subset="true">
       <font-family name="Comic Sans MS">
         <font><font-data ttf="Comic Sans MS"/></font>
       </font-family>
     </font-group>

I also turned off the part of the FO plug-in that post-processes the FO
to munge up the fonts. The font-family specs in my FO are, e.g.:

<fo:root font-family="Century Gothic, Sans"

When I run the Toolkit, I get this response from XEP:

   [java] [error] Cannot read font metric from
file:/Users/ekimber/Library/Fonts/Century Gothic
   [java] [error] java.io.EOFException
   [java] Rendering failed: Could not obtain font metric for font family
'Century Gothic'

So I must be missing something about how fonts work on the Mac or else
missing some bit of user error here.

Thanks,

Eliot

-- 
Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 610.631.6770
www.reallysi.com
www.rsuitecms.com
-------------------
(*) 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
Received on Wed Jan 30 13:50:21 2008

This archive was generated by hypermail 2.1.8 : Wed Jan 30 2008 - 13:50:25 PST