2008年5月20日 星期二

Make chinese display support module on Slax

1. create directories which match to system path

mkdir -p etc/rc.d
mkdir -p usr/share/fonts/TTF

2. download chinese font, fireflysung.ttf for open-source platform then put it into usr/share/fonts/TTF

3. create a script which can be run while booting

vi etc/rc.d/rc.local

fc-cache -f -v
cd /usr/share/fonts/TTF
mkfontscale
cp fonts.scale fonts.dir

4. pack them all to a lzm module

dir2lzm ./ filename.lzm

5. move the module to /slax/modules of your native partition for automatic activation

沒有留言: