[xep-support] Fonts

Fritsch, Michael michael.fritsch at coremedia.com
Mon Nov 15 03:01:21 PST 2004


Hello,
i'm just evaluating XEP 4.0 and have a problem with my ttf-Fonts. I got
the following error message:

java.lang.RuntimeException: com.renderx.fonts.BadFontDataException:
Could not obtain font metric for font family 'Handbuchlight' 

In XEP 2.78 i used the following lines in fonts.xml which worked well
with the fonts located in the afm directory:

 <font name="Handbuchlight"
         ttf="Conduit_Light.ttf"
         embed="true">
     <alias name="Conduit"/>
     <alias name="Conduit-Roman"/>
     <alias name="Conduit-Light"/>
   </font> 


    <font name="Handbuchlightitalic"
	ttf="Conduit_LightItalic.ttf"
         embed="true">
     <alias name="Conduit-Italic"/>
   </font>

   <font name="Handbuchbold"
	ttf="Conduit_Bold.ttf"
         embed="true">
     <alias name="Conduit-Bold"/>
   </font>

   <font name="Handbuchbolditalic"
	ttf="Conduit_BoldItalic.ttf"
         embed="true">
     <alias name="Conduit-BoldItalic"/>
   </font> 

In XEP 4.0 I moved the ttf-files to a fonts subdirectory and used the
following lines in xep.xml:

<font-group xml:base="file:/path/To/Fonts/fonts" label="Conduit"
embed="true"
   subset="true">
        <font-family name="Handbuchlight">
            <font>
                <font-data ttf="Conduit_Light.ttf"/>
            </font>
            <font style="italic">
                <font-data ttf="Conduit_LightItalic.ttf"/>
            </font>
            <font weight="bold">
                <font-data ttf="Conduit_Bold.ttf"/>
            </font>
            <font style="italic" weight="bold">
                <font-data ttf="Conduit_LightItalic.ttf"/>
            </font>
        </font-family>
        <font-alias name="Conduit" value="Handbuchlight"/>
        <font-alias name="Conduit-Roman" value="Handbuchlight"/>
        <font-alias name="Conduit-Light" value="Handbuchlight"/>
        <font-alias name="Conduit-Italic" value="Handbuchlightitalic"/>
        <font-alias name="Conduit-Bold" value="Handbuchbold"/>
        <font-alias name="Conduit-BoldItalic"
value="Handbuchbolditalic"/>
    </font-group>
    
What went wrong?
Best regards,
Michael Fritsch

-- 
Dr. Michael Fritsch
Technical Editor

tel +49.40.325587.214
fax +49.40.325587.999
michael.fritsch at coremedia.com

CoreMedia
Ludwig-Erhard-Str. 18
20459 Hamburg, Germany
<www.coremedia.com>

CoreMedia - The Content Technology Experts

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20041115/807325e6/attachment.html>


More information about the Xep-support mailing list