an additional remark: Original font file size is 13 MB, the subset font is 475 KB. This solution can used to another language which need special font, too.
----- Original Message ----- From: "Song Huang" <[EMAIL PROTECTED]> To: "Developmental mailing list for Tux Paint, a drawing program for young children." <[EMAIL PROTECTED]> Sent: Tuesday, October 26, 2004 12:10 PM Subject: the font subset maker > Hi, > > The font mustly large, especially traditional chinese font more then 13 MB. > > I used python and fontforge to take PO file's msgstr, and generate a subset font > file. > here is the files: > - python script: > http://www.ossacc.org/Members/song/DrWangFreeTTF/maketuxfont.py > - fontforge script: > http://www.ossacc.org/Members/song/DrWangFreeTTF/tuxpaintsubset.pe > - the traditional chinese font subset file: > http://www.ossacc.org/Members/song/DrWangFreeTTF/zh_tw.ttf > > Usage: (put the scripts together) > > $ ./maketuxfont.py -h > usage: ./maketuxfont.py [options] original_font_file > > options: > --version show program's version number and exit > -h, --help show this help message and exit > -lLOCALE, --locale=LOCALE > to make the locale fonts subset > -pPOFILE, --pofile=POFILE > parse the pofile to get strings > > Example: > > $ ./maketuxfont.py \ > -l zh_tw \ > -p tuxpaint/src/po/zh_tw.po \ > -p tuxpaint-stamps/po/tuxpaint-stamps-zh_tw.po \ > wp010-05.ttf > > then will get the "zh_tw.ttf" file. > > Best regards, > ============================================= > Song Huang > OSSACC (OSS Application Consulting Center) > http://www.ossacc.org > ============================================= > _______________________________________________ Tuxpaint-dev mailing list [EMAIL PROTECTED] http://tux4kids.net/mailman/listinfo/tuxpaint-dev
