I have forked freetype-py and added a few things and an example to make it possible to wrap around FontVal's FreeType backend. It is easier than I thought - or maybe it is just time thinking about it before actually getting my hand dirty.
It is on the "fontval-diag" branch of http://github.com/HinTak/freetype-py . Assuming you are on Mac OS X, if you do: ./setup.py build then LD_LIBRARY_PATH=... PYTHONPATH=build/lib/:$PYTHONPATH ./examples/font-diag.py examples/Vera.ttf You should get something like this: -- Family name: Bitstream Vera Sans Style name: Roman Face number: 1 Glyph number: 268 Available sizes: [] Size 10, SLOOP, Glyph ID 241, At ByteOffset 67 : _rast_W_FT_VALUE_OUT_OF_RANGE_SLOOP Size 10, SLOOP, Glyph ID 244, At ByteOffset 67 : _rast_W_FT_VALUE_OUT_OF_RANGE_SLOOP -- Where ... is a directory containing https://github.com/HinTak/Font-Validator/tree/master/bin/Darwin/ , and renaming "libfreetype.6.dylib" to "libfreetype.so.6" . ( see https://github.com/rougier/freetype-py/issues/47 ) Or you can try it with another font other than "Vera.ttf" shipped with freetype-py . The instruction for python on windows should be similar, but taking https://github.com/HinTak/Font-Validator/tree/master/bin/{Win32,Win64}, a bit of copying and renaming. Sorry there is no instruction for linux - because the necessary enhancement in freetype isn't upstreadm yet :-). The 50 lines or so of python code is essentially the python equivalent of a simpler version of https://github.com/HinTak/Font-Validator/tree/master/Compat/Compat.cs . _______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel