Re: [xep-support] Strange problem with Type1 font (broken font?)

From: Greg Ludington <gludington@gmail.com>
Date: Mon Sep 10 2007 - 19:14:32 PDT

I am trying to use a specific client PS font with XEP (v 4.4), but,
though I can use the font with other applications, I keep encountering
a broken font error with XEP. I have tried exporting the fonts from
FontForge in a few combinations, with no luck. This is the message I
see:

XEP Exception: Cannot output subset for Type 1 font
'file:/c:/fonts/News706BT-BoldC.afm', the font is broken
java.io.IOException: Broken font file body

further down the stack trace, I see:

Type 1 exception=java.lang.ArrayIndexOutOfBoundsException: 0

I found an old thread on the message lists that seems to have the same
symptoms, albeit with a different stack trace:

http://www.renderx.net/lists/xep-support/3847.html

Is there a known problem with some types of fonts that I can correct,
or some workaround that was discovered in an off-thread response to
this question?

Thanks,
Greg Ludington

On 10/7/05, Alexei Gagarinov <agagarinov@renderx.com> wrote:
>
> Hello Thomas,
>
> Could you please send the font files (TSer4___.pfb and TSer4i__.afm) to
> support@renderx.com
>
> Best regards,
> Alexei Gagarinov
> RenderX
>
> -----Original Message-----
> From: owner-xep-support@renderx.com [mailto:owner-xep-support@renderx.com]
> On Behalf Of Thomas Schraitle
> Sent: Tuesday, October 04, 2005 8:57 PM
> To: xep-support@renderx.com
> Subject: [xep-support] Strange problem with Type1 font (broken font?)
>
> Hi,
>
> some day ago I wanted to try another font for my documents. Therefor I
> inserted the respective data in the configuration file "xep.xml",
> switched my XSLT stylesheet to the new font, transformed my XML and
> formatted the FO file. However I received the following error:
>
> [error] Cannot output subset for Type 1 font
> 'file:/local/fonts/TSer4i__.pfb', the font is broken
> [error] java.lang.NumberFormatException: For input string: ""
> the font is broken
>
> The relevant part of the configuration file looks like this:
>
> <font-group label="Thesis"
> xml:base="file:///local/fonts/"
> embed="true" subset="true"
> ligatures="&#xFB00; &#xFB01; &#xFB02; &#xFB03; &#xFB04; &#xFB05;">
> <font-family name="MySerif">
> <font>
> <font-data pfb="TSer4___.pfb"
> afm="TSer4___.afm"/>
> </font>
> <font style="italic">
> <font-data pfb="TSer4i__.pfb"
> afm="TSer4i__.afm"/>
> </font>
> </font-family>
> </font-group>
>
>
> I tried the same font in OpenOffice with success. So it seems the font is
> not broken.
> Another attempt was to load it into fontforge and save it as PFB again
> (the license allows this). Although the resulting PFB file is a bit
> smaller I can use it without any errors.
>
> Have somebody an idea what's going on here? I use XEP 4.4 build 20050822.
>
> Thanks,
> Tom
>
> --
> Thomas Schraitle
> -------------------
> (*) 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
>
> -------------------
> (*) 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
>
-------------------
(*) 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 Mon Sep 10 19:39:40 2007

This archive was generated by hypermail 2.1.8 : Mon Sep 10 2007 - 19:39:45 PDT