Change function name for getting name data from font to be more obvious

Add use of name data to example.py
Add additional fields to the maxp table
Correctly set the number of glyphs in a subfont
Adjust some extra information in a subfont
This commit is contained in:
david reid
2015-03-22 10:42:15 +00:00
parent 1388af6b76
commit bd80f270b6
5 changed files with 39 additions and 9 deletions

View File

@@ -16,6 +16,7 @@ if __name__ == '__main__':
print(t.faces[0].font_family)
print(t.faces[0].name)
print(t.faces[0].italic_angle)
print(t.faces[0].get_name_attr(10))
subset = [ord('H'), ord('e'), ord('l'), ord('o')]
font_subset = t.faces[0].make_subset(subset)