You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The < and > characters have no defined metrics for SansSerif family fonts, so they are rendered in roman rather than sans-serif even when enclosed in \textsf, which is inconsistent with LaTeX. For example, consider this sequence in text mode:
< \textsf{<} \textsf{\textless}
LaTeX renders both of the second two less-than signs in sans-serif font:
However, KaTeX renders all three in the same (roman) font:
The difference appears minor, but when combined with other sans-serif characters, the difference in stroke width is more jarring.
Environment (please complete the following information):
KaTeX Version: 0.13.11
The text was updated successfully, but these errors were encountered:
Ah—you are right that the glyphs are missing altogether, not just the metrics; that’s my bad. I thought I had checked by manually adding the textsf class to a span containing a < character, which appeared to work, but it looks like my system font’s fallback character just happens to look similar enough to the SansSerif fonts to blend in. (I guess, looking at the source code more carefully, that is to be expected—it looks like only the glyphs with defined metrics are included in the generated fonts to begin with.)
The
<
and>
characters have no defined metrics for SansSerif family fonts, so they are rendered in roman rather than sans-serif even when enclosed in\textsf
, which is inconsistent with LaTeX. For example, consider this sequence in text mode:LaTeX renders both of the second two less-than signs in sans-serif font:
However, KaTeX renders all three in the same (roman) font:
The difference appears minor, but when combined with other sans-serif characters, the difference in stroke width is more jarring.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: