mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-07 04:08:43 +00:00
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:
@@ -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
Reference in New Issue
Block a user