error creating ttf metrics

2008-09-04 Thread solomailing

ciao,

ttf reader give an error with a barmeno font...
with all other fonts it works fine...
the same ttf file works with TTFReader for fop 0.20.5
any idea? here the debug info...



TTF Reader for Apache FOP 0.95

Parsing font...
Reading Barmeno-Bold.ttf...
sfnt version: OpenType 1.0
Reading 14 dir tables
dir tables: [loca, post, glyf, fpgm, kern, hmtx, hhea, prep, cvt , OS/2, 
cmap, name, head, maxp]

unit per em: 1000
Number of glyphs in font: 399
hhea.Ascender: 865 865
hhea.Descender: -250 -250
Number of horizontal metrics: 399
PostScript format: 0x2
PostScript format 2
Reading 396 glyphnames, that are not in the standard Macintosh set. 
Total number of glyphs=399

sTypoAscender: 776 776
sTypoDescender: -243 -243
sTypoLineGap: 150
usWinAscent: 953 953
usWinDescent: 250 250
Error while building XML font metrics file.
java.io.EOFException: Reached EOF, file size=88952 offset=88958
at 
org.apache.fop.fonts.truetype.FontFileReader.seekSet(FontFileReader.java:86)
at 
org.apache.fop.fonts.truetype.FontFileReader.seekAdd(FontFileReader.java:99)
at 
org.apache.fop.fonts.truetype.FontFileReader.skip(FontFileReader.java:109)

at org.apache.fop.fonts.truetype.TTFFile.readOS2(TTFFile.java:1016)
at org.apache.fop.fonts.truetype.TTFFile.readFont(TTFFile.java:495)
at org.apache.fop.fonts.apps.TTFReader.loadTTF(TTFReader.java:209)
at org.apache.fop.fonts.apps.TTFReader.main(TTFReader.java:164)

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



areatree concat (with bookmarks)

2008-10-29 Thread solomailing

ciao,

while trying to concat some files in areatree intermediate format (using 
somenthing like ExampleConcat.java in fop examples) all work fine if the 
source files don't contain bookmarks...


when source files have some bookmarks in the result pdf all the 
bookmarks reference the same destination...


is this a known issue or maybe i'm doing somenthing wrong?

for example if i've 3 AT file...
...all of them contain 2 pageViewport one with key=P1 and another with 
key=P2

...all of them contain a bookmark with an internal-link=(P1, myDocId)

it seems that in the result of concatenation i get 3 pageViewport with 
key=P1, 3 pageViewport with key=P2 and 3 bookmark that point to the last 
pageViewport with key=P1...

so i get something like:

...


...

...


...

...


...

...




...




if i edit by hand the AT files to have unique pageViewport's keys all 
bookmarks work fine...

the resulting tree become something like...

...


...

...


...

...


...

...




...








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