fontforge/fontforge — pull request #508 by JoesCat (2013-04-05 23:32:24+00:00)
Title: Unicode Library access to Names and Annotations (python)

If the library exists, then return the official name and annotations as
given by Unicode NameList.txt (using python). Also removed trailing spaces.

---Test script---
#!/usr/local/bin/fontforge
import fontforge;
print "start names";
print fontforge.UnicodeNameFromLib(65);
print "x";
print fontforge.UnicodeNameFromLib(69);
print "x";
print fontforge.UnicodeNameFromLib(200);
print "done names";
print "start annotation";
print fontforge.UnicodeAnnotationFromLib(65);
print "x";
print fontforge.UnicodeAnnotationFromLib(66);
print "x";
print fontforge.UnicodeAnnotationFromLib(0x300);
print "done annotation";

---resulting output---
start names
LATIN CAPITAL LETTER A
x
LATIN CAPITAL LETTER E
x
LATIN CAPITAL LETTER E WITH GRAVE
done names
start annotation
None
x
→ (script capital b - 212C)
x
= Greek varia
→ (grave accent - 0060)
→ (modifier letter grave accent - 02CB)
done annotation