Skip to content

Rustdoc uses fake italics for code #65502

@tspiteri

Description

@tspiteri

For example https://doc.rust-lang.org/std/primitive.i32.html has the string “See also the std::i32 module” which inludes code in italics. This is rendered using fake italics because the Source Code Pro italic font is not included.

Adding the italic font would fix this, but at the cost of having an extra font to download. Is the better formatting worth the (one-time?) download?

If there is an interest, I can prepare a PR to include the latest version of Source Code Pro including the italic font. The sizes are as follows:

Font Current Size Latest Size
Regular 55472 95872
Semibold 55360 95576
Italic 84264
Total 110832 275712

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions