[xep-support] Fonts

From: Fritsch, Michael <michael.fritsch@coremedia.com>
Date: Mon Nov 15 2004 - 03:01:21 PST

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"
     <alias name="Conduit"/>
     <alias name="Conduit-Roman"/>
     <alias name="Conduit-Light"/>

    <font name="Handbuchlightitalic"
     <alias name="Conduit-Italic"/>

   <font name="Handbuchbold"
     <alias name="Conduit-Bold"/>

   <font name="Handbuchbolditalic"
     <alias name="Conduit-BoldItalic"/>

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"
        <font-family name="Handbuchlight">
                <font-data ttf="Conduit_Light.ttf"/>
            <font style="italic">
                <font-data ttf="Conduit_LightItalic.ttf"/>
            <font weight="bold">
                <font-data ttf="Conduit_Bold.ttf"/>
            <font style="italic" weight="bold">
                <font-data ttf="Conduit_LightItalic.ttf"/>
        <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"
What went wrong?
Best regards,
Michael Fritsch

Dr. Michael Fritsch
Technical Editor
tel +49.40.325587.214
fax +49.40.325587.999
Ludwig-Erhard-Str. 18
20459 Hamburg, Germany
CoreMedia - The Content Technology Experts
(*) 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/tos.html
Received on Mon Nov 15 03:29:02 2004

This archive was generated by hypermail 2.1.8 : Mon Nov 15 2004 - 03:29:03 PST