#Using book weight of New Computer Modern for text.

51 messages · Page 1 of 1 (latest)

placid shoal
#

How can I use New Computer Modern Book Weight font for text? The default is regular weight, which is too thin for being looking at on screen.

calm fable
#

set text(weight: ..)

placid shoal
#

I believe that book weight is another version of font instead a weight?

#

Left: regular, Right: medium

#

They look the same, while bold is, well... too bold

calm fable
#

semibold maybe?

placid shoal
#

This is another file I wrote in latex, using book weight font

calm fable
#

you can try just using a number, but it might be that our version isn't so granular with weights

#

how did you get the book weight on LaTeX?

placid shoal
#

Following this instruction

grand pier
#

Did you try picking the book font by name instead of relying on weight?

placid shoal
#

I tried, but all fall back to default

#

The fonts are here

#

What fc-list looks

grand pier
#

Do you have the font installed on your system? Because I don't think typst ships with the book weight

#

I don't have access to a computer rn, but there's a command to see which fonts typst has found

placid shoal
#

What is it? Let me try

thin moon
#

typst fonts

grand pier
#

As an aside, if you want a heavier font, the stix two fonts are great.

placid shoal
#

Seems it doesn't, make sense

thin moon
#

You can include font directories with —font-path iirc?

grand pier
#

If it's detected as just a weight of the font it wouldn't be listed there separately

#

Can typst fonts list all the weights as well @thin moon ?

placid shoal
#

I think "book" may be a style of the font, as fc-list says

#

But the style user can choose is hardcoded

#

Can I directly load the otf file, using, maybe absolute path?

thin moon
grand pier
#

@formal fiber

placid shoal
formal fiber
#

Try typst fonts --variants

#

Book is weight 450

#

Normal is weight 400

grand pier
#

Sorry for the ping. You should be taking the weekend off!

formal fiber
#

Typst defaults to 450 for equations because New CM Book fits better with Linux Libertine.

#

show math.equation: set text(weight: 400) should select the normal weight

formal fiber
placid shoal
#

seems the math font has the weight, but not the text font

#

This also shows that typst does not find my system fonts

grand pier
#

Regardless, you can specify a path for fonts

placid shoal
grand pier
#

I'm not a Linux user, so I don't know if that should be sufficient

#

I just know that typst finds my Windows fonts without issue

placid shoal
#

It works

#

Thank you very much!