Updated instructions to mention using ttf2fft, plus the patch for it, and then makefdb.
Updated with the download URLS for the new ttf2fft release.
|Deletions are marked like this.||Additions are marked like this.|
|Line 24:||Line 24:|
| https://sourceforge.net/projects/ming/files/ming/ttf2fft/ttf2fft-1.0.tar.gz/download <<BR>>
https://sourceforge.net/projects/ming/files/ming/ttf2fft/ttf2fft-1.0.tar.bz2/download <<BR>> <<BR>>
It needs patching to work with Freetype 2.2+: <<BR>> <<BR>>
| https://sourceforge.net/projects/ming/files/Releases/ttf2fft/1.1/ttf2fft-1.1.tar.gz/download <<BR>>
https://sourceforge.net/projects/ming/files/Releases/ttf2fft/1.1/ttf2fft-1.1.tar.bz2/download <<BR>> <<BR>>
Flash can display text in any font you like, and Ming supports that capability.
However, prior to Ming 0.4.0.beta5 fonts need to be in a special format, .FDB.
For TTF and FDB fonts use:
1 SWFFont myFont = newSWFFont_fromFile("/path/to/myTTForFDBfile");
Ming version < 0.4.0.beta5
Before using a font (typically in TrueType format, .TTF), we must convert it to .FDB format.
There is no direct TTF-to-FDB converter, but we can go through an intermediate format, FFT.
Installing the utilities
The FDB format font outlines are created using this process:
a) Convert the TTF files to FFT with "ttf2fft" from:
b) Convert the FFT files to FDB format with "makefdb", included in the Ming "utils" folder.
- At least the one from Ming 0.4.2 is known to work. Other versions of Ming are likely fine too.
Converting a font
Find your TTF file (e.g. myfont.ttf).
- Copy it into the directory containing ttf2fft, then:
./ttf2fft myfont.ttf -o myfont.fft
- This will create a .fft file.
Now simply use makefdb to create an FDB file from this, e.g.:
- You now have an .fdb file that can be used by Ming.