Add font metrics for \iint, \iiint

Also, fix the python dict keys so we actually get the metrics back into the
javascript correctly.

Fixes #56

Auditors: alpert
This commit is contained in:
Emily Eisenberg 2014-09-16 16:00:30 -07:00
parent aa7052d03a
commit e6b3cbe7c1
2 changed files with 13 additions and 5 deletions

View File

@ -14,6 +14,14 @@ metrics_to_extract = {
u"\u22ef", # \cdots u"\u22ef", # \cdots
u"\u22f1", # \ddots u"\u22f1", # \ddots
u"\u22ee", # \vdots u"\u22ee", # \vdots
],
"Size1-Regular": [
u"\u222c", # \iint
u"\u222d", # \iiint
],
"Size2-Regular": [
u"\u222c", # \iint
u"\u222d", # \iiint
] ]
} }
@ -40,10 +48,10 @@ def main():
skew = 0 skew = 0
start_json[font][ord(char)] = { start_json[font][ord(char)] = {
height: height / fontInfo.em, "height": height / fontInfo.em,
depth: depth / fontInfo.em, "depth": depth / fontInfo.em,
italic: italic / fontInfo.em, "italic": italic / fontInfo.em,
skew: skew / fontInfo.em, "skew": skew / fontInfo.em,
} }
sys.stdout.write( sys.stdout.write(

File diff suppressed because one or more lines are too long