mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 11:18:39 +00:00
Add the ability to extract metrics from ttfs
Summary: Upon switching over from ttf metrics to TeX metrics, we lost metrics for a couple of the characters that are dynamically generated by TeX. Thus TeX doesn't have metrics for them, but our fonts do have the characters because the MathJax scripts also dynamically build them. This adds the ability to extract metrics from the generated font files so that we can use the generated characters correctly. A better solution would be to dynamically generate the characters ourselves, but that is much harder, and will be left to a future time. Test Plan: - Make sure typing "\neq \cong \text{ }" produces no warnings in the console. - Make sure huxley screenshots look the same Reviewers: alpert Reviewed By: alpert Differential Revision: http://phabricator.khanacademy.org/D13107
This commit is contained in:
Reference in New Issue
Block a user