You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Lucio Tatantino <lu...@volendo.com> on 2001/03/28 15:40:23 UTC

Type 1 font problem

Hello,
I'have a little problem whith FOP 0.18 and Type 1 font (Embedded). In
according with doc.

1. I generate the .xml file with org.apache.fop.fonts.apps.PFMReader
(all ok)

PFM Reader v1.1

Reading CODE128B.PFM...

Font: Code128B
Name: Barcode128B
CharSet: WinAnsi
CapHeight: 0
XHeight: 0
LowerCaseAscent: 0
LowerCaseDescent: 0
Having widths for 223 characters (32-255).
for example: Char 32 has a width of 500

Creating xml font file...

Writing xml font file code128.xml...

2. I modify the userconfig.xml with the lines

 <font metrics-file="code128.xml" kerning="yes"
embed-file="/home/lucio/label/CODE128B.PFM">
    <font-triplet name="Barcode128B" style="normal" weight="normal"/>
 </font>

3. I run the fop without errors
FOP 0.17.0 DEV
using SAX parser org.apache.xerces.parsers.SAXParser
building formatting object tree
setting up fonts
formatting FOs into areas
 [1]
 [2]
rendering areas to PDF
Writing 7220 bytes of font data
writing out PDF
Embedded Type1 font


But when I use the resoult PDF the fonts isn't displayed ( Only a line
si rendered! ) and if I print my acroread ( 4.05 fro Linux ) the message
"Unable to riestrieve Embedded font Barcode128B" is displayed.

I've tried other PFM font and the resoult is the same. With TTF fonts
all work fine.


Lucio Tarantino

Re: Type 1 font problem

Posted by Tore Engvig <te...@infostream.no>.

On Wed, 28 Mar 2001, Lucio Tatantino wrote:

> Hello,
> I'have a little problem whith FOP 0.18 and Type 1 font (Embedded). In
> according with doc.

[snip]
>  <font metrics-file="code128.xml" kerning="yes"
> embed-file="/home/lucio/label/CODE128B.PFM">
>     <font-triplet name="Barcode128B" style="normal" weight="normal"/>
>  </font>
[snip]

You've embedded the .pfm file, you must embed the .pfb file.


Tore



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org