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

Rustdoc: monospaced font appears too large on a Retina display #10330

Closed
sfackler opened this issue Nov 7, 2013 · 3 comments · Fixed by #10421
Closed

Rustdoc: monospaced font appears too large on a Retina display #10330

sfackler opened this issue Nov 7, 2013 · 3 comments · Fixed by #10421

Comments

@sfackler
Copy link
Member

sfackler commented Nov 7, 2013

It's most noticeable with inline monospaced text, but all monospaced text is too large.

error

@sfackler
Copy link
Member Author

sfackler commented Nov 7, 2013

IANAWD, but this seems to be due to the fact that Rustdoc's CSS specifies font sizes in px instead of em.

@adrientetar
Copy link
Contributor

@sfackler This is wrong. px units are relative, just like em. The only difference is that em scales relatively to the parent element.
http://mail.kde.org/pipermail/owncloud/2012-December/006814.html
So, look no further than px units. Fonts will also vary depending on what you have available on your device.

@adrientetar
Copy link
Contributor

It looks like you are using Helvetica and Monaco, Retina MBP.

@ghost
Copy link

ghost commented Nov 11, 2013

hivatkozott erre a kérdésre twbs / bootstrap:?Úgy néz ki, mint a használt Helvetica és Monaco, Retina MBP.? ténynek köszönhető, hogy a Rustdoc CSS határozza betűméret px helyett em.: inkább a Menlo Monaco :mint px ??,-

bors added a commit that referenced this issue Nov 13, 2013
* Closes #10330
* Improves on #9873
* Adds favicon for tutorial files
@bors bors closed this as completed in 123e0ce Nov 13, 2013
Jarcho pushed a commit to Jarcho/rust that referenced this issue Feb 26, 2023
cast_possible_truncation: issue proper help message

Fixes rust-lang#10325

---

changelog: Sugg: [`cast_possible_truncation`]: Corrected the lint name in help message
[rust-lang#10330](rust-lang/rust-clippy#10330)
<!-- changelog_checked-->
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 a pull request may close this issue.

2 participants