-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[rustdoc] Add sans-serif font setting #133636
Conversation
Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @jsha |
If you want Fira Sans for the main body type, then Fira Mono should be used for code. That way they have consistent point sizes, x-height, and other features. |
Sounds good to me! |
This comment has been minimized.
This comment has been minimized.
Checking what studies say about it.
So seems like there is no difference or it's a bit better in favour of sans serif. In any case I want to ensure the team is on board with this as it's a big UI change. Better take our time to ensure that we're not missing something before approving the change. |
I realized I was kind of terse. Here's a slightly more detailed opinion, along with the reason why I hold it:
I think this is why even relatively un-customizable apps like Apple Books have multiple font packs built in. It's few enough that they can make sure every one of them looks good, but diverse enough to satisfy the most common problems someone might have with extended reading. I think we should add an option to the Settings panel to change the font, just like Pocket and Firefox's Reader Mode. This is because, when you consider the "bikeshedding effect," there really aren't that many people complaining about Source Serif. Now that CSS Variables are being used, implementing this shouldn't actually be that hard. |
No I actually agreed with your point. I should have looked into it beforehand.
Starting the moment you mentioned it, I was planning to change it. I didn't because I don't want to invest more time into it unless I'm sure the team is onboard.
I think as a first step (and eventually as final step too) it might be better. Like that people can pick serif or sans serif and everyone is happy. |
☔ The latest upstream changes (presumably #133634) made this pull request unmergeable. Please resolve the merge conflicts. |
43681bf
to
88d45d0
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
60e8aef
to
247aece
Compare
This comment has been minimized.
This comment has been minimized.
247aece
to
b1c60a6
Compare
Rebased just in case but again, when running |
This comment has been minimized.
This comment has been minimized.
Yeah ok, I officially have no idea what's wrong with this script. |
license-metadata.json
Outdated
], | ||
"spdx": "Apache-2.0 OR CC-BY-SA-4.0 OR MIT" | ||
}, | ||
"name": "src/doc/embedded-book", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume it's because you've got your config.toml set up to avoid building the embedded book and gcc, so they don't wind up included in this file even though they should be.
To fix this, would either do a truly complete rust build, or I would just hand-patch in the few lines that are added in your PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, that makes more sense now. Thanks a lot!
762eec8
to
58090ad
Compare
The PR description and title don't describe what it does any more. That should probably be changed, then it can be more easily FCP-ed. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
8832953
to
1b6d0cf
Compare
This comment has been minimized.
This comment has been minimized.
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
1b6d0cf
to
2511faf
Compare
CI fixed, let's go. :) @bors r=rustdoc |
[rustdoc] Add sans-serif font setting Fixes rust-lang#52449. This PR adds a new setting introducing the possibility to switch to a sans-serif font (`Fira Sans`) for the text. Can be tested [here](https://rustdoc.crud.net/imperio/sans-serif/std/index.html). cc `@rust-lang/rustdoc-frontend` r? `@notriddle`
[rustdoc] Add sans-serif font setting Fixes rust-lang#52449. This PR adds a new setting introducing the possibility to switch to a sans-serif font (`Fira Sans`) for the text. Can be tested [here](https://rustdoc.crud.net/imperio/sans-serif/std/index.html). cc ``@rust-lang/rustdoc-frontend`` r? ``@notriddle``
…iaskrgr Rollup of 8 pull requests Successful merges: - rust-lang#133636 ([rustdoc] Add sans-serif font setting) - rust-lang#135434 (Match Ergonomics 2024: update edition 2024 behavior of feature gates) - rust-lang#135739 (Clean up uses of the unstable `dwarf_version` option) - rust-lang#135882 (simplify `similar_tokens` from `Option<Vec<_>>` to `&[_]`) - rust-lang#136179 (Allow transmuting generic pattern types to and from their base) - rust-lang#136199 (Fix a couple Emscripten tests) - rust-lang#136238 (ci: refactor how directories are removed in free-disk-space disk) - rust-lang#136251 (use impl Into<String> instead of explicit type args with bounds) r? `@ghost` `@rustbot` modify labels: rollup
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#133636 ([rustdoc] Add sans-serif font setting) - rust-lang#135434 (Match Ergonomics 2024: update edition 2024 behavior of feature gates) - rust-lang#135739 (Clean up uses of the unstable `dwarf_version` option) - rust-lang#135882 (simplify `similar_tokens` from `Option<Vec<_>>` to `&[_]`) - rust-lang#136179 (Allow transmuting generic pattern types to and from their base) - rust-lang#136199 (Fix a couple Emscripten tests) - rust-lang#136251 (use impl Into<String> instead of explicit type args with bounds) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#133636 - GuillaumeGomez:sans-serif, r=rustdoc [rustdoc] Add sans-serif font setting Fixes rust-lang#52449. This PR adds a new setting introducing the possibility to switch to a sans-serif font (`Fira Sans`) for the text. Can be tested [here](https://rustdoc.crud.net/imperio/sans-serif/std/index.html). cc ```@rust-lang/rustdoc-frontend``` r? ```@notriddle```
Fixes #52449.
This PR adds a new setting introducing the possibility to switch to a sans-serif font (
Fira Sans
) for the text.Can be tested here.
cc @rust-lang/rustdoc-frontend
r? @notriddle