Hi

I posted this message a couple of days back regarding adding additional
fonts to FOP. Unfortunately I did not get much response to my problem. Can
someone please give me a few pointers on how to get wround my problem.

Thanks in advance....

Ricardo Coutinho

-----Original Message-----
From: Ricardo Coutinho [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 17:19 PM
To: [EMAIL PROTECTED]
Subject: Adding additional fonts to FOP 0.17.0


Hi all

I am trying to use additional fonts as part in my PDF creation process.
However I am getting a number of errors/funnies which is making my life
difficult.

1. I get the error below when trying to generate the font metrics file for
the Arial font.
TTF Reader v1.0

Reading D:\winnt\fonts\arial.ttf...

Read dir tab [68 83 73 71] offset: 146136 length: 5096 name: DSIG
Read dir tab [76 84 83 72] offset: 6752 length: 659 name: LTSH
Read dir tab [79 83 47 50] offset: 456 length: 86 name: OS/2
Read dir tab [80 67 76 84] offset: 146080 length: 54 name: PCLT
Read dir tab [86 68 77 88] offset: 7412 length: 4500 name: VDMX
Read dir tab [99 109 97 112] offset: 3704 length: 1734 name: cmap
Read dir tab [99 118 116 32] offset: 15432 length: 1416 name: cvt
Read dir tab [102 112 103 109] offset: 13976 length: 1456 name: fpgm
Read dir tab [103 97 115 112] offset: 544 length: 16 name: gasp
Read dir tab [103 108 121 102] offset: 35316 length: 100434 name: glyf
Read dir tab [104 100 109 120] offset: 19468 length: 15848 name: hdmx
Read dir tab [104 101 97 100] offset: 332 length: 54 name: head
Read dir tab [104 104 101 97] offset: 388 length: 36 name: hhea
Read dir tab [104 109 116 120] offset: 16848 length: 2620 name: hmtx
Read dir tab [107 101 114 110] offset: 140608 length: 5472 name: kern
Read dir tab [108 111 99 97] offset: 5440 length: 1312 name: loca
Read dir tab [109 97 120 112] offset: 424 length: 32 name: maxp
Read dir tab [110 97 109 101] offset: 560 length: 3143 name: name
Read dir tab [112 111 115 116] offset: 135752 length: 4856 name: post
Read dir tab [112 114 101 112] offset: 11912 length: 2063 name: prep
java.io.EOFException: Reached EOF, file size=151232
        at
org.apache.fop.fonts.FontFileReader.readTTFString(FontFileReader.java:220)
        at org.apache.fop.fonts.TTFFile.readFont(TTFFile.java:221)
        at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:207)
        at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:176)

                                                                                       
                                                                 
---------------------------------------------------------
------------------------


2 I managed to generate the metrics file using the latest Fop-0.19.0-CVS
version (I downloaded today) and tha worked. However the generate process
seemed to skip out certain nodes that the version 1.0 TTF reader creates ie
<class-name>, <first-char>, <last-char>. Without those entries I was not
able to rebuild FOP
TTF Reader v1.1.1

Reading D:\winnt\fonts\arial.ttf...

Number of glyphs in font: 655
Creating xml font file...

Creating CID encoded metrics
Writing xml font file Arial.xml...

This font contains no embedding license restrictions
                                                                                       
                                                                 
---------------------------------------------------------
------------------------

3 I did finaly manage to rebuild FOP with the Arial font built in. However,
the resulting PDF was all messed up. I have attached snippets of the 2
outputs. Did this happen because the font-metrics file is missing
entries...?



Thanks in advance for you help.


Ricardo Coutinho
Developer


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


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

Reply via email to