
|
84782 packages online
|
|
 |
|
|
|
No screenshot available
|
Short: | Rename true type fonts file correctly |
Author: | "James S.Perrin" james.perrin ntlworld.com |
Uploader: | James S Perrin <james perrin ntlworld com> |
Type: | text/font |
Version: | 1.2 |
Architecture: | m68k-amigaos |
Date: | 2001-01-13 |
Download: | text/font/ttfr.lha - View contents | Readme: | text/font/ttfr.readme |
Downloads: | 402 |
|
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] <ttf_files>
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
|
Contents of text/font/ttfr.lha
PERMSSN UID GID PACKED SIZE RATIO CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic] 5657 9352 60.5% -lh5- 88b6 Jan 10 2001 ttfr/ttfr
[generic] 1409 4264 33.0% -lh5- ce2b Jan 10 2001 ttfr/ttfr.c
[generic] 1235 2330 53.0% -lh5- 4957 Jan 10 2001 ttfr/ttfr.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
Total 3 files 8301 15946 52.1% Jan 13 2001
|
|
|
 |
Page generated in 0.02 seconds |
Aminet © 1992-2024 Urban
Müller and the Aminet team.
Aminet contact address: <aminet aminet net> |