Closed
Description
Description
When math and text fonts are set to use matching fonts, the math glyphs are rendered as slightly bolder. For example, the following code:
#set page(margin: 0pt, width: auto, height: auto)
#set text(font: "Latin Modern Roman")
#show math.equation: set text(font: "Latin Modern Math")
1$1$
produces this image, in which the second 1
is noticeably bolder:
Compare this to the latex output (using lualatex
) of:
\documentclass{standalone}
\usepackage{unicode-math}
\setmainfont{Latin Modern Roman}
\setmathfont{Latin Modern Math}
\begin{document}
1$1$
\end{document}
Typst version: 0.10.0 (70ca0d25)
Reproduction URL
No response
Operating system
Linux
Typst version
- I am using the latest version of Typst
Metadata
Metadata
Assignees
Labels
No labels
Activity
Enivex commentedon Dec 16, 2023
They're likely just defaulting to different font weights (which you can adjust).
Regardless, you should be using New Computer Modern instead of Latin Modern. It has significant improvement.
Alternatively it's a case of #576 . In either case I'll convert this to a discussion.