Troubles using another font and printing

Hi!

I want to use an ocr-b font for some pages.
It looks good within PDF (acroread and xpdf) but when i try to print or
generate ps there is errors.


I have got a type-1 font and have made a font metrics xml-file from the
afm.

Inserted into conf/userconfig.xml
 <font metrics-file="ocr-b.xml" kerning="yes"
embed-file="/home/melker/ocr-b/0646X___.PFB">
    <font-triplet name="OCRB10PitchBT-Regular" style="normal"
weight="normal"/>
 </font>
withinth the <fonts>-tag.
The name of the font is copied from the font metrics file.


My test file:
<?xml version="1.0" encoding="iso-8859-1"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  <fo:layout-master-set>
    <fo:simple-page-master master-name="simple"
                  page-height="29.7cm" 
                  page-width="21cm"
                  margin-top="1cm" 
                  margin-bottom="2cm" 
                  margin-left="2.5cm" 
                  margin-right="2.5cm">
      <fo:region-body margin-top="3cm"/>
      <fo:region-before extent="3cm"/>
      <fo:region-after extent="1.5cm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-name="simple">
    <fo:flow flow-name="xsl-region-body">

      <!-- this defines normal text -->
      <fo:block font-family="OCRB10PitchBT-Regular">
      TESTMASSA SOM INNEHÅLLER SIFFROR 0123456789-9876543210
      </fo:block>
    </fo:flow> <!-- closes the flow element-->
  </fo:page-sequence> <!-- closes the page-sequence -->
</fo:root>

I've tried both:
./fop.sh -c conf/userconfig.xml avi.fo avi.pdf
./fop.sh -c conf/userconfig.xml avi.fo -ps avi.ps

The PDF looks correct in xpdf and acroread.

When I try to print (from acroread or directly) I get on the paper:
-------------------
ERROR: syntaxerror
OFFENDING COMMAND: bin obj seq, type=128, elements=1, size=7439,
non-zero unused field

STACK:
-------------------

Thnkful for any help.
/Erik Melkersson

PS: I have tried whithout using the Å-charachter (swedish), with the
same result.

__________________________
Erik Melkersson, UNIT
melker@unit.liu.se, 013-285794
http://www.unit.liu.se/

Received on Friday, 28 September 2001 03:53:36 UTC