[NTG-context] A ruby script to create the font for Chinese fonts

Zhichu Chen zhichu.chen at gmail.com
Fri Dec 21 03:53:58 CET 2007


Oops, seems that I've "accidentally" sent an old one.

On Dec 21, 2007 8:45 AM, Zhichu Chen <zhichu.chen at gmail.com> wrote:

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




-- 
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
----------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ntg.nl/pipermail/ntg-context/attachments/20071221/d782f142/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uniCJKt1.rb
Type: application/x-ruby
Size: 4507 bytes
Desc: not available
Url : http://www.ntg.nl/pipermail/ntg-context/attachments/20071221/d782f142/attachment-0001.bin 


More information about the ntg-context mailing list