Song posted this from an unsubscribed address, so I'm posting it ;^)

-bill!


----- Forwarded message from [EMAIL PROTECTED] -----

Date: Tue, 26 Oct 2004 12:10:39 +0800
From: "Song Huang" <[EMAIL PROTECTED]>
Subject: the font subset maker
To: "Developmental mailing list for Tux Paint,
        a drawing program for young children." <[EMAIL PROTECTED]>

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
=============================================

----- End forwarded message -----

-bill!
[EMAIL PROTECTED]                            New Breed Software
http://www.newbreedsoftware.com/               Tux Paint 0.9.14 is out!
_______________________________________________
Tuxpaint-dev mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxpaint-dev

Reply via email to