W3C home > Mailing lists > Public > www-talk@w3.org > January to February 2008

Not able to render Chinese Fonts through FOP

From: Charanpreet Arora <send2charan@gmail.com>
Date: Wed, 20 Feb 2008 09:32:38 +0530
Message-ID: <1aa8f5de0802192002i98f992ai98356fb6d736c369@mail.gmail.com>
To: www-talk@w3.org
Dear All,

I'm trying to generate XML metrics file from custom fonts (ttf) by executing
FOP's TTFReader. (on Mac OS X, Ver 10.4) It keeps giving the following

TTF Reader for Apache FOP 0.94

Parsing font...
Reading fonts/MHeiGB-Bold.ttf...
*Error while building XML font metrics file.
**java.io.EOFException: Reached EOF, file size=0*

I have added all required jars in the classpath. Below is the snapshot of
the script:

export LIB=../lib
export CMD="java -cp $LIB/fop.jar:$LIB/avalon-
export CMD="$CMD:$LIB/xercesImpl-
export FONT_DIR='fonts'
export METRICS_DIR='xml'

if [ "$#" = "2" ] ; then
    echo Usage : sh ttfConvert.sh arg1 arg2
    echo where arg1 = name of ttf file in font dir
    echo and   arg2 = name of metrics file to be created in xml dir

Any help in this regard is greatly appreciated.

Thanks & Regards,
Received on Wednesday, 20 February 2008 16:44:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:07 UTC