Hello, everyone.
I like a lot the New Computer Modern/Latin Modern variant called MLModern, that was available in LaTeX under the package mlmodern
. It has thicker glyphs to enhance readability and comprises the whole set of math symbols.
What I have done so far
The original package from CTAN has various files, but the relevant ones are *.pfb
files, i.e. type1 files. Since typst supports .ttf
/.otf
files, I’ve converted all the type1 files to .ttf
using the script from this Reddit post. When I upload the converted .ttf
files to typst, I am able to use the fonts in text using
#set text(font: "MLMRoman10")
but (A) I am not sure it is using correctly also the bold and italic variants, and (B) the same does not work for the math variants:
#show math.equation: set text(font: "MLMMathSymbols10")
the compiler gives an error when I try to use math:
This markup in “main.typ”…
$x^2$
…caused this problem:
Current font does not support math.
Type1 files
There are files for different styles and sizes (ranging from 5pt to 17pt depending on the style). Stripping the mlm
prefix and <size>.pfb
suffix, these are the font filenames: b
, bx
, csc
, duno
, mib
, ro
, ssbx
, sso
, tcso
, tl
, tlo
, tto
, vtko
, vtt
, bo
, bxi
, csco
, ex
, r
, ss
, ssdc
, sy
, tk
, tlc
, tt
, u
, vtl
, vtto
, bsy
, bxo
, dunh
, mi
, ri
, ssbo
, ssdo
, tcsc
, tko
, tlco
, tti
, vtk
, vtlo
.
I don’t know what math fonts typst supports and which font files should be merged together (if a single file is needed) nor do I know how to do that preserving math properties. I suspect that, in the conversion from type1 to truetype, the MATH table has not been converted properly. Please help me find some leads.
Thank you all