AFDKO

Indices : Software : Font Development Software : AFDKO

Adobe Font Development Kit for OpenType (AFDKO) is a freely-distributed set of libraries and Python bindings by Adobe for working with OpenType fonts. Available for Windows and Mac OS. Comes with a suite of command-line tools, and is also used by FontLab and TypeTool, among others, for supporting some of OpenType's more sophisticated features.

URL
http://www.adobe.com/devnet/opentype/afdko/

Presentation at Robothon'09
http://blip.tv/file/1908888

-------------------------------------------------

INSTALLATION
Both the command-line tools and the FontLab macros are self-contained and run independently of each other.

AFDKO command-line tools on Mac OS X
1. Download and decompress the AFDKO package.
2. You should now have a folder named 'FDK'. Move it to where you want.
3. Open a Terminal window (Terminal is located in /Applications/Utilities/Terminal.app)
4. Open the 'FDK' folder and locate the file named 'FinishInstallOSX'
5. Select the 'FinishInstallOSX' file, drag & drop it on the Terminal window, and press the 'Return' key.
If FinishInstallOSX complains that it does not have permission to make the changes, type 'sudo ' (no quotes and keep the final space) before doing step 5. This command will prompt you for the system administrator password, which will allow FinishInstallOSX to complete its work.
6. Close the Terminal window (Command+W).

If all went well the FDK should now be ready to run. To test it, do the following:
A. Open a Terminal window.
B. Type 'autohint -h' (no quotes) and hit 'Return'. This should give you the Help information about the Autohint tool.

If you get an 'OSError: [Errno 17] File exists', go to /Users/(your_username)/bin, delete the symbolic link named 'FDK', and run FinishInstallOSX again.

If you get a message saying '-bash: autohint: command not found', do the following additional steps:
+1. Open a new Terminal window and type pico .profile
+2. You should now have the '.profile' file opened in pico, and see some lines that look like this: PATH=${PATH}:"/Users/your_username/bin/"
+3. Select those lines, copy them, and close the file (Ctrl+X).
+4. Type pico .bash_profile
+5. Paste the lines copied in step +3.
+6. Close the file (Ctrl+X), answering “Y” to save the changes.
+7. Close the Terminal window.
+8. Open a new Terminal window. Typing 'autohint -h' should now work, as well as all the other AFDKO command line tools.

-------------------------------------------------

AFDKO FontLab macros on Mac OS X
0. Quit FontLab, in case it is running.
1. Locate the 'Macros' folder in your FontLab installation. The path to it should be something like
/Users/(your_username)/Library/Application Support/FontLab/Studio 5/Macros
If there is no 'Macros' folder, create one on that location.
2. Download and decompress the AFDKO package.
3. You should now have a folder named 'FDK'.
4. Open a Terminal window (Terminal is located in /Applications/Utilities/Terminal.app), and type 'cd ' (no quotes and keep the final space).
5. Select the 'FDK' folder, drag & drop it on the Terminal window, and press the 'Return' key.
6. Type 'cd Tools/FontLab' (no quotes) and hit 'Return'.
7. Still in the Terminal window, type 'python installFontLabMacros.py ' (no quotes and keep the final space).
8. Select the 'Macros' folder from step 1, drag & drop it on the Terminal window, and press the 'Return' key.

If all went well, you should see a bunch of lines in the Terminal window that start with 'Copied:'. The AFDKO FontLab macros are now installed, and the 'FDK' folder can be deleted.

If you get lines that say 'Failed to copy file (...) IOError: [Errno 13] Permission denied: (...)', it's because the AFDKO FontLab macros were previously installed. To install them again you'll need to remove the old files.

-------------------------------------------------

AFDKO command-line tools on Windows XP
1. Download and decompress the AFDKO package.
2. You should now have a folder named 'FDK'. Move it to where you want (e.g. C:\FDK). In case you put the FDK folder inside another folder, make sure that the folder name does *not* have spaces. Therefore, don't put it inside the 'Program Files' folder, for example.
3. Open the 'FDK' folder, proceed to the 'Tools' folder and continue to the 'win' folder. The Address field should contain something like 'C:\FDK\Tools\win' (assuming the 'FDK' folder was moved to the location suggested in step 2).
4. Select and copy the contents of the Address field.
5. Open the Control Panel (Start Menu > Settings > Control Panel)
6. Locate 'System' and open it. You should now have a new window named 'System Properties'.
7. Select the tab named 'Advanced'.
8. Press the 'Environment Variables' button.
9. In the 'User variables for your_username' field, scroll down until you see one entry named 'PATH' (or 'Path' or 'path'). If you find one, go to step A1, otherwise go to step B1.

   A1. Select the entry named 'PATH' and click on the 'Edit' button below that area. You should now have a new window named 'Edit User Variable'.
   A2. Select the 'Variable value' field and move the cursor all the way to the end, i.e. all the way to the right. (Beware that the contents of the 'Variable value' might be too long and appear trimmed)
   A3. Once at the end, type a semicolon (;) and paste-in the contents from step 4.
   A4. Click on the 'OK' button.

   B1. Click on the 'New' button (top one). You should now have a new window named 'New User Variable'.
   B2. In the 'Variable name' field, type 'PATH'. (no quotes)
   B3. In the 'Variable value' filed, paste-in the contents from step 4.
   B4. Click on the 'OK' button.

10. Click on the 'OK' button again. ('Environment Variables' window)
11. Click on the 'OK' button once more. ('System Properties' window)

If all went well the FDK should now be ready to run. To test it, do the following:
A. Open a Command Prompt window. (Start Menu > Run... > cmd.exe)
B. Type 'autohint -h' (no quotes) and hit 'Return'. This should give you the Help information about the Autohint tool.

-------------------------------------------------

AFDKO FontLab macros on Windows XP
You must have Python installed before you proceed. For information on how to install Python, go to the FontLab Python page.
0. Quit FontLab, in case it is running.
1. Locate the 'Macros' folder in your FontLab installation. The path to it should look something like
C:\Documents and Settings\your_username\My Documents\FontLab\Studio5\Macros
If there is no 'Macros' folder, create one on that location.
2. Download and decompress the AFDKO package.
3. You should now have a folder named 'FDK'.
4. Open a Command Prompt window (Start Menu > Run... > cmd.exe), and type 'cd ' (no quotes and keep the final space).
5. Select the 'FDK' folder, drag & drop it on the Command Prompt window, and press the 'Return' key.
6. Type 'cd Tools/FontLab' (no quotes) and hit 'Return'.
7. Still in the Command Prompt window, type 'python installFontLabMacros.py ' (no quotes and keep the final space).
8. Select the 'Macros' folder from step 1, drag & drop it on the Command Prompt window, and press the 'Return' key.

If all went well, you should see a bunch of lines in the Command Prompt window that start with 'Copied:'. The AFDKO FontLab macros are now installed, and the 'FDK' folder can be deleted.

On step 7, if you have Python installed but still get a message that says ''python' is not recognized as an internal or external command, operable program or batch file.', locate the folder where Python is installed, and add that folder's path to the 'PATH' User Variable.

-------------------------------------------------

Related files
Font Production at Adobe (PDF)
Font Testing at Adobe (PDF)

Discussions
New Adobe FDK...when?
AFDKO 2.0 : Post your feedback here
InDesign CS3 problem with OT-feature Proportional Oldstyle
AFDKO doesn't work with Python 2.5
Installing AFDKO

The GlyphOrderAndAliasDB file
MakeOTF and GlyphOrderAndAliasDB problem

Syndicate content