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
1 file changed
tree: a6dbd7f77007b92a0b8b8e6686474bdeb006ab3d
  1. Doc/
  2. Lib/
  3. MetaTools/
  4. Tools/
  5. Windows/
  6. .gitignore
  7. LICENSE.txt
  8. MANIFEST.in
  9. README.md
  10. setup.py
README.md

What it is ?

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.

Quick start

python setup.py install

From your command line type the above command to get fontools installed on your system.

Installation

See install.txt in the 'Doc' subdirectory for instructions on how to build and install TTX/FontTools from the sources.

Documentation

What is TTX ?

See documentation.html in the "Doc" subdirectory for TTX usage instructions and information about the TTX file format.

Community

License

See "LICENSE.txt" for licensing information.

Have fun!

Just van Rossum just@letterror.com