Detail configuration:
I tried local compilation. This font has been install but when I use “typst fonts” it (Arial Narrow) is not listed. I was trying to directly use this .ttf file with the setup:
(a) Attempt A:
#set text(
font: "arial-narrow",
size: 12pt,
)
(b) Attempt B:
#set text(
font: "Arial Narrow",
size: 12pt,
)
Unfortunately, neither works:
This .ttf file is in the same folder. When using local compiler, the command is:
Hi and welcome! Could you describe your situation in more detail? Are you using the app or a local installation? Have you installed the font or copied the font somewhere? More general: what have you done to use the font from Typst.
Could you also try to revise your post’s title to be a complete question as per the question guidelines:
Good titles are questions you would ask your friend about Typst.
A good title makes the topic easier to grasp, increasing your chances of getting a good answer quickly. Adding tags such as web-app (if applicable) and fonts will also help. We also hope by adhering to this, we make the information in this forum easy to find in the future.
Finally, take a look at this question to see if it helps you resolve your issue:
By explicitly setting the style, weight and stretch parameters I don’t need to add --ignore-system-fonts to exclude other Arial variants installed on the system.
I’m not an expert on fonts, but I think what’s going on is that “Arial Narrow” is a variant of “Arial” with certain parameters (I assume here it’s a different stretch). The way to select that font is to use the base font’s name, and adjust the parameter.
you can use typst fonts --variants --font-path . to see what font family and settings your Arial Narrow font has. I don’t have it installed but here’s what I get for one of the built-in fonts: