-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mtextFontInherit does not inherit font style (bold, italic, etc.) #226
Comments
OK, thanks. I confirm the report, and will work on a resolution. |
… so that \textbf and \textit will work properly. Resolves issue mathjax#226.
The |
OK, so the Configuration/HTML-CSS/mtextFontInherit/issue226.html is not correct. I should rather test with \textbf and \textit. |
Right. I understand the test you had in mind, but in order to make the output using mtextFontInherit work consistently for either value (true or false), it needs to ignore the style and weight of the outer font and use that of the mathematics. Otherwise, if the outer font were bold, say, then \text{A} and \textbf{A} would not be different, and they should be. |
So just to be sure that we agree: the issue here is that {mtextFontInherit: true} prevents \textit and \textbf to behave as expected? |
OK, I'll write two != reftests x against \textbf{x} (with mtextFontInherit = true in both cases) |
(I meant \text x) |
Configuration/HTML-CSS/mtextFontInherit/issue226a.html Verified with Opera, Chrome and Firefox. => In testsuite, Ready for release |
Yes, you are correct, |
Using "HTML-CSS": {mtextFontInherit: true} does adopt the surrounding text's font family but not its style. In particular, \textbf, \textit and co., which are defined as ['Macro','\mathord{\bf{\text{#1}}}',1], do not display the text in bold/italic/etc. face.
The text was updated successfully, but these errors were encountered: