Peter Hancock <peter.hancock <at> gmail.com> writes:

> 
> 
> Hi Olov, Your base-uri should be "file:///C:/TEST1/" and not
"file:/C:/TEST1/".I hope that fixes things for you!PeteIf that does not work you
might try setting the <base> 
> 2010/3/24 Olov Häggström <olov.haggstrom <at> netresult.se>
> Hi,
> I am trying to create an afp-file with IBM Raster fonts. To create the fonts I
> used http://www-01.ibm.com/support/docview.wss?uid=psd1P4000840 together with 
> a
> true type font.
> I then use xml and xslt files that only contains text using the "MyTestFont"
> font. The fo-file has been tested and works fine when generating PDF with the
> TTF-font.
> When trying to run FOP i encounter the following error:
> 2010-mar-24 09:15:30 org.apache.fop.apps.FopFactoryConfigurator configure
> INFO: Default page-height set to: 11in
> 2010-mar-24 09:15:30 org.apache.fop.apps.FopFactoryConfigurator configure
> INFO: Default page-width set to: 8.26in
> 2010-mar-24 09:15:30 org.apache.fop.afp.fonts.CharacterSetBuilder build
> ALLVARLIG: Failed to load the character set metrics for code page T1V10500
> 2010-mar-24 09:15:30 org.apache.fop.cli.Main startFOP
> ALLVARLIG: Exception
> java.lang.RuntimeException: Failed to read font control structured fieldin
> character set C0A08060
>         at
>[...]
> Regards
> Olov
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe <at> xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help <at> xmlgraphics.apache.org
> 
> 
> 
> 

Hi Peter,

Thanks for your input. I tried the "file:///C:/TEST1/" and it gives me the same
error messages.

I was looking into the FOP code and realized that my knowledge about AFP raster
fonts has been (and is) somewhat limited. The code page actually has to refer to
a code page file (duh). When I created my raster-fonts I hade the possibility to
choose a character list (chose LATIN1) and a code page file. Since I didn't have
any code page file I didn't use one.

I suspect that the possibilities of receiving such a file free of charge are
pretty slim. Is it possible to create for oneself?

BTW: When looking into the code I realised that you could bypass the looking for
a code page and instead use the built in base14 class files. This by adding the
"base14-font" property in the <afp-raster-font> tag, like so:

<afp-raster-font size="36" characterset="C0A080Z0"
base14-font="CourierBoldOblique"/>

Of course, this didn't give me the result I was looking for (embedded AFP-raster
fonts)

//Olov




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to