|
|
NRSI: Computers & Writing Systems You are here: Type
Design > Resources FontUtils
Toolkit for font developers
Updated 2009-04-17, version 0.13 New utility: ttfdeflang - creates a font with the given language id as being default. New options: -update and -list options for ttftable Previous updates 2008-06-11 - New utility (add_classes); new options (make_gdl, make_volt, volt2ttf); improvements to volt2ttf. 2007-11-16 - New utilities (volt2ttf, ttf2volt, ttfbboxfix, ttftable, sfd2ap, volt2ap); ttfname improvements. 2006-06-24 - New versions all round, added bundle package 2006-04-20 - Improved make_gdl, make_volt. Supports OS/2 version 3. 2005-06-09 - Addition of voltFixup, voltImportAnchors and voltExportAnchors. Introduction IntroductionThe Font::TTF::Scripts Perl module provides a number of command line tools for manipulating TrueType fonts. The tools (and the supporting library package Font::TTF) have been available to Perl users for a number of years, and they are an essential tool of NRSI's font development processes. For Perl users the most up-to-date sources can be retrieved from our Subversion repositories. Now these scripts have been packaged as standalone Windows executables, making them usable by those who do not have Perl. The utilitiesThis package includes, among other utilities:
Obsolete or outdated utilitiesA number of utilities formerly installed with this package have been obsoleted by alternative tools or deemed to be low usage and so are no longer installed as executables by the standard installers (binary or source). However, the source bundle includes all of these in the Examples folder.
Obsolete / outdated utilities UsageAll of the tools are commandline, so you will typically launch them by typing the command name and parameters into a CMD window. Most tools provides their own "usage" message explaining the parameters. To get the usage message, execute the command with no parameters. For example: C:> eurofix.bat EUROFIX [-m num] infile outfile Edits a font to account for the change in codepage 1252 definition in Win98, NT5 and all things new then. -m specifies that the Mac hack should also be done. The following changes are made to ensure that the glyphs at the two positions are the same, if possible: U+0080 and U+20AC Euro sign U+008E and U+017D Z caron U+009E and U+017E z caron U+00B7 and U+2219 Middle dot For more details of which glyph is used where in Windows, see the POD which accompanies this program. For the Mac table glyph at U+0080 (in MS table) copied to num Euro sign (-m may be for 240 or 211 depending on Apple or MS) Copies are only made if there is no glyph there already. Note also that many of the commands now support a -h option for fuller help. Download and InstallationWindows binary installerThe installer should be downloaded to a temporary folder and then launched. This will install the package. By default the installer adds the installation folder to your PATH. As an alternate installation: turn off the option to modify your PATH variable during installation. When the installer has finished, copy all the .BAT files from the install directory (typically C:Program FilesSILFontUtils to a folder that is already on your PATH.
Older versions
Perl sourceThe source is packaged in two separate modules:
Perl 5.8 or newer is required. These two modules are available in several ways: CPAN sourceSnapshots of the source packages are available on SVN RepositoryYou may browse or obtain updated sources directly from our public
Perl module installationWindows users please note Installing perl modules requires that you have a make utility of some sort,
and such isn't built into Windows. On its website Microsoft provides the free nmake, but unfortunately some versions of nmake are not capable of installing Font:TTF. If
you are using ActiveState Note also: If you have both nmake and dmake on your system, ActivePerl prefers nmake unless dmake appears first on the PATH. To find out which version of make Perl is using, issue the command perl -V:make. Once you have an appropriate make program, the easiest way to get and obtain the modules is using the cpan program that is likely to be part of your Perl installation. Simply execute: cpan -i Font::TTF cpan -i Font::TTF::Scripts If you don't have cpan, or it doesn't work, download and unpack the source archives from the links above. Then locate the folder containing the file Makefile.pl. From a command prompt in that folder, give the standard Perl module install incantation of: perl Makefile.pl make make test make install (substituting dmake for make if on Windows). SupportA public mailing list is available for users and developers of the Font::TTF and Font::TTF::Scripts
packages. Visit Please recognize, however, that the existence of this group does not change the fact these utilities and libraries are essentially unsupported. If you find and report a bug, we'll try to find time to fix it. If you find a bug and suggest a patch, we'll get around to reviewing the suggestion as soon as we can. But no guarantees on time-frames. Copyright notice Copyright (c) 1997-2009 SIL International © 2003-2012 SIL International, all rights
reserved, unless otherwise noted elsewhere on this page. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||