I want to translate the .ttf file to .otb file. When I execute following script, I got two problems.
1> #!/usr/local/bin/fontforge
2> Open($1);
3> Reencode("iso8859-1");
4> Reencode("iso10646-1",1);
5> BitmapsAvail([0x40019],1);
6> Generate($1:r+".","otb");
The question 1 is:
The BitmapsAvail function of script dose not work. If I execute the script directly by the Fontforge, I got empty bitmap font. I must run these command in GUI mode by following step,
step 1: execute the script line #3 and line #4 at File->Execute Script.
step 2: execute Element->Bitmap Strikes Avaliable
step 3: execute the script line #6 at File->Execute Script
The question 2 is:
I don't know why I need re-encode to iso8859-1 and force encode back to iso10646-1. If I miss these two steps, I also got a empty bitmap font.
--
Regards
Kuoping
|