home *** CD-ROM | disk | FTP | other *** search
- ================================================================
-
- ConvertAFM and UnpackFNT Source Code
-
- ================================================================
-
- These things reveal a great amount of insight in .metric and screen font
- logic, if you can read it!
-
- ConvertAFM.c must be compiled using the large data model. I have a humongous
- array (int kerningTables[256][256]) which simply shoots the small data model
- completely into orbit. As such I couldn't make it residentable.
-
- UnpackFNT.c was a marriage of two types of coding, one before I took a
- proper C course, and one after. So don't complain if you see some
- contradictions.
-
- Both are in ANSI C (I think) and use ANSI conventions. They compile with
- DICE and I suspect with Lattice/SAS. I didn't use any Amiga calls. The source
- is nicely commented.
-
- If you want to write Intuition versions of these, either make sure it gets
- released as freeware or shareware, or ask permission to use my routines
- first! Or if you really feel like re-coding it all... :-)
-
- FUTURE REVISIONS: none. These CLI/Shell based programs are as good as it
- gets. Intuition based versions are, however, in the brainworks. If anyone
- knows a better way of generating the kerning array I'm all ears. I plan on
- using the .metric format for a grand project, which if completed, will
- really shake up Amiga DTP.
-
- BUGS: Sometimes the filename generator in ConvertAFM will produce the
- wrong family name, depending on the typeface names it gets. This isn't
- a problem though; the user can supply a different filename and this
- routine gets ignored.
-
- That's all I wrote.
-
-