commit | fea81ee2b3d820cf6beee40fa8ec95a0cfa99214 | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Wed Jan 15 23:33:59 2014 +0800 |
committer | Behdad Esfahbod <behdad@behdad.org> | Wed Jan 15 23:38:08 2014 +0800 |
tree | a6dbd7f77007b92a0b8b8e6686474bdeb006ab3d | |
parent | ce2a30998b5b9aa0c62aa1cb212b36c75ee805ac [diff] |
Use Python's unicodedata.name() in fontTools.unicode This removes our internal copy of Unicode names database! Adds new API fontTools.unicode.setUnicodeData() that can be called with a filename or file object corresponding to a UnicodeData.txt file, which will consequently used for Unicode character name mapping. This is useful for using newer Unicode database than the one that comes with the builtin Python module. This also changes behavior such that control characters, Hangul syllables, Han chars, etc, get no name with custom UnicodeData.txt. We may revisit this though. Filed https://github.com/behdad/fonttools/issues/82 to add option to ttx to pass custom UnicodeData.txt. Fixes https://github.com/behdad/fonttools/issues/81
Quoting from TTX/FontTools Sourceforge Project
a tool to convert OpenType and TrueType fonts to and from XML. FontTools is a library for manipulating fonts, written in Python. It supports TrueType, OpenType, AFM and to an extent Type 1 and some Mac-specific formats.
python setup.py install
From your command line type the above command to get fontools installed on your system.
See install.txt in the 'Doc' subdirectory for instructions on how to build and install TTX/FontTools from the sources.
See documentation.html in the "Doc" subdirectory for TTX usage instructions and information about the TTX file format.
See "LICENSE.txt" for licensing information.
Have fun!
Just van Rossum just@letterror.com