Short: Rename true type fonts file correctly Author: James S.Perrin Uploader: James S Perrin Type: text/font Version: 1.2 Architecture: m68k-amigaos What Is It? This program searches a True Type font for the font name given within the file and renames the file to it. Spaces are optionally removed from the final name. Why? After downloading a few TT fonts I found they often had daft name like GIB_____.ttf presumably to keep M$DOS users happy. I saw the pfbr program on the aminet that does exactly the same for PostScript Type1 fonts and thought it should be equally straight forward, doh! Installation Stick in C: Usage ttfr [-s] I suggest you rename your file BEFORE you install them with ttfmanager as it uses the filenames, If you've already installed them the ony thing to do is delete the generated files (.font .otag) an reinstall. To retain spaces in filename specify -s before the file list. NOTE: the binary was compiled with libnix which doesn't support wild cards, if you want to use wild cards I suggest you recompile with ixemul which you must then obviously have installed. Bugs Seems to work fine for me but I've kludged the unicode reading by assuming its a western/latin coding ie only the second byte of the word is used, so it won't work if your font has a name in japanese characters. Character encoding is not something I particularly understand (or want to), so if you can send me a patch I'll be happy to update. Also I've assumed the M$ form of TrueType which has a different way of specifying which character encoding is used from Apple (this just the encoding for strings in the file not the actual font!) Anecdote Since there was no docs for ttflib (it probably has a function for getting the font name) and I thought it would be easy as for PS Type 1 to search for the font name (hence I didn't use the freetype library) I decided to write this from scratch. Neither M$ or Apple seem to think that "truetype" is a good enough keyword to get to the actual pages containing the truetype specification. I spent as much time looking for the docs as I did reading them and writting the program. History v1.0 first release v1.1 replaced AmigaOS problem symbols <>":/ with . v1.2 added option to retain spaces, requested by Klaus B. Küsche