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

Typeface "Inter" is missing italics #166

Closed
genericusername3 opened this issue Oct 9, 2023 · 7 comments
Closed

Typeface "Inter" is missing italics #166

genericusername3 opened this issue Oct 9, 2023 · 7 comments
Assignees
Labels
bug Something isn't working. fonts Fonts in the app.

Comments

@genericusername3
Copy link

Description

When using the web app to write a document, the typeface Inter does not provide italics even though there are italic font variants.

Maybe this is related to Google Fonts listing Inter as nine separate weights with no oblique variants, although Inter is actually a variable font that defines weight and slant as separate axes. As such, it should be able to provide italics for functions like emph

Reproduction URL

https://typst.app/project/rtK5d78zM8nS7QeWEN5dGA

Browsers

No response

OS

No response

@genericusername3 genericusername3 added the bug Something isn't working. label Oct 9, 2023
@genericusername3
Copy link
Author

For reference, the font family package distributed at rsms.me/inter includes both the variable font and italics variants

@laurmaedje
Copy link
Member

We indeed used the distribution from Google Fonts which does not have italics. Typst does not support variable fonts currently, but the website you linked also provides static fonts. We can switch to these.

@genericusername3
Copy link
Author

I would be very grateful for that, if it's not too much effort! Inter is my personal go-to for digital sans-serifs

@alerque
Copy link

alerque commented Oct 9, 2023

Google fonts has a laundry list of limitations they are working around and this often results in hobbled fonts. There are various reasons they are good *for their target niche: web browsers loading dynamic content. That doesn't always make them the best builds for typesetter/publishing use. For any fonts that build and distribute directly from the upstream project and are not just available on GF the project distributions are usually better. There are exceptions for fonts that were only partially developed whet GF decided to adopt them and they forked, improved, and then published the results without also releasing the updated sources separately. You can usually tell by the timing of the font artifacts being added to the GF repo compared to commit and release activity on the upstream project repo. If the latter is active then go with that when using fonts for anything other than online browser based typesetting work.

@laurmaedje laurmaedje transferred this issue from typst/typst Oct 9, 2023
@genericusername3
Copy link
Author

I mean, I, too, would like an extensive up-to-date font catalogue but I suspect building something like that from scratch might be too big a task for now

@laurmaedje
Copy link
Member

We intentionally curated our own font list rather than just having all of Google fonts. We just downloaded some of the fonts from there. Good to know that there are often differences to the upstream repositories.

@laurmaedje laurmaedje added the fonts Fonts in the app. label Oct 10, 2023
@PgBiel
Copy link

PgBiel commented Feb 3, 2024

Just ran into the same issue; the solution was to download the Inter font directly from https://github.com/rsms/inter/releases/. Seems like there was a new release in November 2023 as well (Inter 4.0), and the README claims Google Fonts is outdated. Perhaps the webapp could just switch to the Inter 4.0 release from GitHub?

Edit: regarding the variable font matter, this seems relevant: google/fonts#2386 (comment)

@reknih reknih closed this as completed Feb 7, 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. fonts Fonts in the app.
Projects
None yet
Development

No branches or pull requests

5 participants