-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(math): Fix caching of getMathMetrics
getMathMetrics’ cache is now per-font, using the key function defined in SILE.fonts. This fixes the rendering of formulas in documents that have different math font sizes. The effect is particularly noticeable in the position of subscripts and superscripts. getMathMetrics is moved to a member function of the mbox class to avoid duplicating the logic that computes the `options` table. The `options` table is renamed to `font` to avoid a clash with a different table that has the same name in `elements.table`.
- Loading branch information
1 parent
e07e450
commit 3332698
Showing
8 changed files
with
981 additions
and
984 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.