Hi,

Although Hans has made the perfect ruby script "ttf2uni.rb" that meets most of our needs, I just found that "sometimes" embedding ttf files is very very slow, so I made some tiny modifications on it. It will convert an oft file to a ttf file if no ttf files are found in the names of the arguments, then use ttf2pt1 to span it into multiple type1 binaries with fontforge.

Actually the only thing we need is the uni-??.enc, ????.tfm, ????.pfb, ????.map and ????.afm, I don't know what is the ????.enc files can do but I still kept them in a folder.

Anyway, this script only works on Linux, because I'm bad at ruby and have to use some shell command to do what I need, like moving files into a sub-directory, I think maybe use File.foreach can do it but I never succeed.


--
Best Regards
Chen
----------------------------------------------------------------

         Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
        No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
            tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
                                              | www.sinap.ac.cn
----------------------------------------------------------------