Avoid non-determinisms related to font metric generation

We had some duplicate mappings in mappings to start with.  Now we have some
code to complain loudly about these, and all currently existing duplicates
have been dealt with.

We also had a problem where in some Python dict, existing stuff was using
strings as keys while new data would use numeric indices, thus not
overwriting the previous value.  Now we always use strings as keys.

Along the road, the italic dotless i and j symbols were changed
so that they now are taken from cmmi10 instead of cmti10.
This commit is contained in:
Martin von Gagern
2015-07-09 17:25:35 +02:00
parent 86115b8fce
commit d26a67f220
3 changed files with 18 additions and 17 deletions

View File

@@ -84,7 +84,7 @@ def main():
italic = 0
skew = 0
start_json[font][ord(char)] = {
start_json[font][str(ord(char))] = {
"height": height / fontInfo.em,
"depth": depth / fontInfo.em,
"italic": italic,