TYPE DESIGN INFORMATION PAGE last updated on Wed Nov 20 11:44:02 EST 2024
FONT RECOGNITION VIA FONT MOOSE |
|
|
Mac to PC truetype converter
For many Mac truetype fonts, this little UNIX shell file (requiring bin2ascii, sed, gawk) converts a truetype file to Windows format. Tinker with it for better results. for i do filename=$i rm -rf $filename.bin $filename.$$ bin2ascii $filename > $filename.bin sed '/\\0\\x01\\0\\0\\0/s//XXXXX/' $filename.bin | gawk ' BEGIN {m=0} $0 ~ /XXXXX/ && m == 0 {print "AAAAA" $0; m=1} m == 2 {print $0} $0 ~ /name/ || $0 ~ /cmap/ {m=2} ' | sed '/^AAAAA.*XXXXX/s//\\0\\x01\\0\\0\\0/' | sed '/XXXXX/s//\\0\\x01\\0\\0\\0/' > $filename.$$ bin2ascii -i $filename.$$ > $filename.ttf #rename $filename.ttf # (use above line if you have a font renaming utility) rm -rf $filename.bin $filename.$$ done |
EXTERNAL LINKS |
| |
| |
Luc Devroye ⦿ School of Computer Science ⦿ McGill University Montreal, Canada H3A 2K6 ⦿ lucdevroye@gmail.com ⦿ https://luc.devroye.org ⦿ https://luc.devroye.org/fonts.html |