mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
Use style specific FONTDIM metrics (#545)
Summary: FONTDIM metrics include metrics like sup2, sup3, etc. which are used for position sub/super-scripts, fractions, delimiters, etc. TeX uses three different font styles: textfont2 (DISPLAY & TEXT), scriptfont2 (SCRIPT), and scriptscriptfont2 (SCRIPTSCRIPT) and has different sets of metrics for each. This diff adds style specific metrics for better TeX compliance. Notable squashed commits: - Recreated screenshots (martin) - fix getEmPerEx to use getXHeight - regularize how we access options.style, remove unnecessary newlines - use var style = options.style in more places in buildHTML
This commit is contained in:
committed by
Martin von Gagern
parent
ace67541a0
commit
22957d40f6
Binary file not shown.
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Reference in New Issue
Block a user