Skip to content

Use correct format to load TTF files#2862

Merged
kinnison merged 1 commit intorust-lang:masterfrom
sondr3:fix-font-loading
Nov 8, 2021
Merged

Use correct format to load TTF files#2862
kinnison merged 1 commit intorust-lang:masterfrom
sondr3:fix-font-loading

Conversation

@sondr3
Copy link
Copy Markdown
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
Copy Markdown
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