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:
parent
aa7052d03a
commit
e6b3cbe7c1
|
@ -14,6 +14,14 @@ metrics_to_extract = {
|
|||
u"\u22ef", # \cdots
|
||||
u"\u22f1", # \ddots
|
||||
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
|
||||
|
||||
start_json[font][ord(char)] = {
|
||||
height: height / fontInfo.em,
|
||||
depth: depth / fontInfo.em,
|
||||
italic: italic / fontInfo.em,
|
||||
skew: skew / fontInfo.em,
|
||||
"height": height / fontInfo.em,
|
||||
"depth": depth / fontInfo.em,
|
||||
"italic": italic / fontInfo.em,
|
||||
"skew": skew / fontInfo.em,
|
||||
}
|
||||
|
||||
sys.stdout.write(
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user