TYPE DESIGN INFORMATION PAGE last updated on Fri Dec 13 00:46:35 EST 2024

SEARCH THIS SITE:

IMAGE SEARCH:

FONT RECOGNITION VIA FONT MOOSE

LUC DEVROYE


ABOUT







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
MyFonts search
Monotype search
Fontspring search
Google search

INTERNAL LINKS
Mac <=> PC Font Conversion ⦿ X windows font software ⦿













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