[xep-support] Configuring Fonts on OS/X

Tommy Nordgren tommy.nordgren at comhem.se
Wed Jan 30 14:10:33 PST 2008


The fonts in the Mac OS X font directories are stored in a format that  
don't work with xep (an neither with Apache Fop)
The open-source tool fontforge available at sourceforge.net can save a  
copy of a Mac OS X native font in a format xep can use.
On 30 jan 2008, at 21.55, Eliot Kimber wrote:

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

----------------------------------
Skinheads are so tired of immigration, that they are going to move to  
a country that don't accept immigrants!
Tommy Nordgren
tommy.nordgren at comhem.se



-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at 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



More information about the Xep-support mailing list