How do I change font and font size of text based on an #import[ed] template from 'Universe'?

#set text(font: "Charter")

for example does not change anything.

Moved to Questions

You will need to provide more information here. First of all, which template?

Unfortunately if the template has been implemented in a sub-optimal way, it’s not possible to change the font without editing the template itself.

For example:

#import "@preview/letter-pro:2.1.0": letter-simple

The letter-simple function actually seems to provide a font parameter to customize the font.

For other templates that don’t have such a parameter, you can sometimes override the font by setting it after applying the template.

Thank you. But what does that mean? Can I change it in my text using some code like: #set letter.with(font: "...")? Or do I have to dig inside the template?

You need to write it like this.

#import "@preview/letter-pro:2.1.0": letter-simple

#show: letter-simple.with(
  sender: (name: "Charles", address: "123 Barker Street"),
  font: "Charter"
)

letter-simple is a function with argument font to which you can pass the fontnames as a string or an array of strings.

Don’t hesitate to take a look at the Typst Tutorial on making a template.

1 Like

That was it. Thank you very much.