Skip to content

Wide characters in rustdoc: Fall-back to default CJK serif font on Windows is ugly #84035

Closed
@ghost

Description

In Windows, browsers like Chrome and Firefox use legacy fonts as default serif font to render.
rustdoc uses its custom serif fonts, but these do not support CJK glyph, so the browser renders CJK characters as default one.

The problem is that the default serif font in Windows is so ugly and not clear.
The default sans-serif font looks just ok.

Take a look at this screenshot after matching the pixels on the monitor.

Why don't we just use sans-serif font for rustdoc? Or, we can use sans-serif fonts that look like serif font.

With Windows default serif font (batang.ttc):
Screenshot_2021-04-09 xingapi - Rust

With Noto Sans font (not serif):
Screenshot_2021-04-09 xingapi - Rust(2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)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