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

Use correct format to load TTF files #2862

Merged
merged 1 commit into from
Nov 8, 2021

Conversation

sondr3
Copy link
Contributor

@sondr3 sondr3 commented Oct 8, 2021

I got a bunch of warnings when visiting the website on my Firefox saying downloadable font: no supported format found. The root cause is that using ttf is an invalid format for @font-face, you can see the valid specifiers here. However this does change the install box font quite drastically when the font is actually loaded:

Before

image

After

image

In my case it was using my preferred monospace font, DejaVu Sans Mono since I do not have the rest of the fonts for the pre.

Copy link
Contributor

@kinnison kinnison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this fix

@kinnison kinnison merged commit d208a21 into rust-lang:master Nov 8, 2021
@sondr3 sondr3 deleted the fix-font-loading branch November 8, 2021 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants