Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Italic text has inconsistent weight in some fonts #512

Open
ssotoen opened this issue Dec 23, 2024 · 0 comments
Open

Italic text has inconsistent weight in some fonts #512

ssotoen opened this issue Dec 23, 2024 · 0 comments
Labels
bug Something isn't working.

Comments

@ssotoen
Copy link

ssotoen commented Dec 23, 2024

Description

I tested this with the Reforma superfamily (Reforma 1918, Reforma 1969, Reforma 2018) but the issue might exist for other families with similar weights as well.

The Reforma families each have 3 weights, with the lightest one (“Blanca”) being the default, “regular” weight. However, when the font weight is set to regular, italicised text is displayed with the medium weight (“Gris”).

This issue is exclusive to the web app; I can’t reproduce it locally.

Code
#set text(
  font: "Reforma 1918",
  weight: "regular",
)

#let it = text.with(style: "italic")

This is _emphasised_.

This is #it[italicised].

#set text(weight: "light")

This is _emphasised_ and #it[italicised] with light weight.
Output
web app cli
web app cli

Reproduction URL

https://typst.app/project/rc4QOuZyFRu77hjoxLf9Sd

Browsers

Firefox

OS

Windows

@ssotoen ssotoen added the bug Something isn't working. label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant