Font utilities
From DejaVu
These font utilities were developed to aid management of DejaVu fonts and could be handy for other font designers too. They are free to use, modify, redistribute etc.
Contents |
Makefile
Today, most of the different scripts are combined together into one Makefile.
Building fonts
If you want to build the full ttf versions of DejaVu, just type this in a shell:
make full-ttf
If you want the version with only the LGC characters (Latin, Greek and Cyrillic), use:
make lgc-ttf
Checking for problems
Before committing a patch, you need to check for some problems first, using:
make check
Getting ready beforing committing to SVN or making a patch
Don't forget to do:
make pre-patch
before you make a patch. This will replace the source sfd files with normalized versions, which will make patches cleaner.
Status files
Use
make status
to get updated status.txt, unicover.txt and langcover.txt files. This won't replace the ones in the main directory, but will create new ones in the build/ directory.
Making packages
make dist
will generate the full set of packages that are uploaded when a DejaVu Fonts release is made. Generated packages can be found in the dist/ directory.
Regenerating condensed styles
make condensed
will create new versions of the Sans Condensed and Serif Condensed styles. This is usually run once before release to automatically update them with the changes in the Sans and Serif styles.
Old scripts
These aren't used directly anymore, but called from by the Makefile.
Status file generator
Usage: ./status.pl VERSION OLD_STATUS SFD_FILES
Generates status file on standard output.
Unicode coverage analyzer
Usage: ./unicover.pl UnicodeData.txt Blocks.txt SFD_FILE1 LABEL1 (SFD_FILE2 LABEL2...)
Required files: http://www.unicode.org/Public/UNIDATA/UnicodeData.txt and http://www.unicode.org/Public/UNIDATA/Blocks.txt
Generates Unicode coverage table on standard output.
Language coverage analyzer
Usage: ./langcover.pl fc-lang SFD_FILE1 LABEL1 (SFD_FILE2 LABEL2...)
Required files: fc-lang directory with files from http://webcvs.freedesktop.org/fontconfig/fontconfig/fc-lang/
Generates language coverage table on standard output.
SFD normalizer
Usage: ./sfdnormalize.pl SFD_FILES
Normalizes SFD files (discards or normalizes GUI-related information stored there which interferes with team development). Changed files have suffix .norm. For the list of normalized things, see comment on top of source code.
Problems finder
Usage: ./problems.pl [-l <0|1|2|3>] SFD_FILES
Finds various kinds of problems (some are not real problems only style policy violations) in SFD files. See comment on top of source code for more information.
Other
Glyph comment colorizer
Usage: ./colorize.pl COLOR SFD_FILES < GLYPH_CODES_FILE
Colorizes given glyphs with given comment color. Changed files have suffix .color. See source code for more information.
