Magdikova wrote:
I have to create metrics file for Barcode128C.TTF font because I would like
to
generate barcode with FOP.
Please help me: How can I create metrics file or CMAP table for TTF font

Editing fonts is a little off topic for this list. If you don't know how to do it then it might be worth contacting the Font provider and asking them to change the font for you - which they may do for a fee.

If anyone else is going to be able to help you with this then they would need to see the documentation for the font along with a sample XSL-FO input to create the barcode.

I suggest trying FOP trunk as Jeremias mentioned an enhancement there which means you can use the font without changing it. You have just got to know how to download the FOP Source and compile it. There is some information on the website on how to download the source: http://xmlgraphics.apache.org/fop/dev/index.html#dev-code

To compile FOP you just need to install Ant and then change to the FOP directory and run ant.

Chris


If I try to generate metrics file with FOP I get an error message:


TTF Reader for Apache FOP 0.95

Parsing font...
Reading C:\windows\fonts\Barcode128C.TTf...
sfnt version: OpenType 1.0
Reading 14 dir tables
dir tables: [PCLT, loca, post, glyf, fpgm, hmtx, hhea, prep, cvt , OS/2,
cmap, n
ame, head, maxp]
unit per em: 1000
Number of glyphs in font: 132
hhea.Ascender: 1498 1498
hhea.Descender: -364 -364
Number of horizontal metrics: 132
PostScript format: 0x20000
PostScript format 2
Reading 2 glyphnames, that are not in the standard Macintosh set. Total
number o
f glyphs=132
sTypoAscender: 1498 1498
sTypoDescender: -364 -364
sTypoLineGap: 97
usWinAscent: 1498 1498
usWinDescent: 364 364
sxHeight: 0
sCapHeight: 500
Font box height: 1862
Ascender and descender together are larger than the em box. This could lead
to a
 wrong baseline placement in Apache FOP.
1 0 0 1 Barcode 128C
1 0 0 2 Regular
1 0 0 3 Barcode 128C
1 0 0 4 Barcode 128C
1 0 0 6 Barcode 128C
3 0 1033 1 Barcode 128C
3 0 1033 2 Regular
3 0 1033 3 Barcode 128C
3 0 1033 4 Barcode 128C
3 0 1033 6 Barcode 128C
xHeight from PCLT: 1498 1498
capHeight from PCLT: 1498 1498
3 cmap tables
Platform ID: 0 Encoding: 0
Platform ID: 1 Encoding: 0
Platform ID: 3 Encoding: 0
Unsupported TrueType font: Unicode cmap table not present. Aborting

XML font metrics file successfully created.




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to