Note 1: This is probably mostly of interest to those in mathematical circles, as I don’t know if other scientific communities use this font.
Note 2: I don’t know if this was already built into the language, but since I couldn’t find it, I decided ot go down the rabbit hole of figuring out how to implement it using .otf files.
Because a paper I wanted to try and translate to Typst uses Ralph Smith Formal Script, with notable examples being that the roundface script S is used to denote Schwartz spaces of test functions in Distribution Theory (insert your Space Balls jokes here). While some of the letters seem to be similar to the built in
#math.scr("A")
which I assume is a built-in script font with New Computer Modern, other letters are very far off, such as Q. As such, i went down the rabbit hole of trying to get RSFS working. It wasn’t a fun task, but it’s working now.
If anyone wants to repeat the process while actually making sure the glyphs aren’t messed up, as I’m not a font specialist, you can do it by taking the Type 1 font files here and converting them to .otf files. I used Font Forge for this step.
Next, and I don’t know if this has to do with ASCII encodings, or something more esoteric, but when you place these .otf files into a directory where your Typst installation will find them, you need to use:
#text(font: "rsfs10")[ABCDEFGHIJKLMNOPQRSTUVWXYZ]
rather than the $scr("ABC")$ command to get RSFS to appear.
I’d share my .otf files here, but the upload system doesn’t allow it.
I am going to feel very foolish if these turned out to already be within the compiler, but nonetheless, if anyone gains anything from this, it’ll have been worth it.



