You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reason: @font-face definitions in CSS file "rust.css" are referring to the wrong level of the file system. The Woff files are stored in "/" -- and not in "/book".
Current (wrong) definition: src: local('Fira Sans'), url("FiraSans-Regular.woff") format('woff');
It should be: src: local('Fira Sans'), url("/FiraSans-Regular.woff") format('woff');
Or even better: src: local('Fira Sans'), url("https://doc.rust-lang.org/FiraSans-Regular.woff") format('woff');
The same is true for all @font-face definitions in the CSS file.
The text was updated successfully, but these errors were encountered:
TimNN
added
C-bug
Category: This is a bug.
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
labels
Nov 14, 2017
Fix broken CSS for book redirect pages
rust.css has to be next to the font files so we shouldn't copy it for
only the book redirect pages, instead just use the version that is
already there.
This also removes the duplicate code creating version_info.html.
Fixes: #45974
Web fonts don't work on this page: https://doc.rust-lang.org/book/ - at least not in Firefox.
Reason: @font-face definitions in CSS file "rust.css" are referring to the wrong level of the file system. The Woff files are stored in "/" -- and not in "/book".
Current (wrong) definition:
src: local('Fira Sans'), url("FiraSans-Regular.woff") format('woff');
It should be:
src: local('Fira Sans'), url("/FiraSans-Regular.woff") format('woff');
Or even better:
src: local('Fira Sans'), url("https://doc.rust-lang.org/FiraSans-Regular.woff") format('woff');
The same is true for all @font-face definitions in the CSS file.
The text was updated successfully, but these errors were encountered: