PROPOSAL: Use 400 weight for H1 and H2, fall back to sans-serif for Simplified and Traditional Chinese headings #159
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
[Test URL: https://beewareorg--10.org.readthedocs.build/zh-cn/10/]
The Chinese rendering for headings right now has very thin characters as compared to the english characters in Cutive:
This is due to the fact that the default MkDocs theme wants H2 to be 300 weight, but Cutive does not have that thin of a weight, so it falls back onto the regular font weight, which is very thick for a "Regular" or 300 font. Since not only Chinese but other non-Cutive fonts is likely to have this problem, I've bumped the weight for H1 and H2 to 400.
In addition, the serifs looks out of place in Chinese because the style (Songti / Mingti; I don't know which one) doesn't match the slab-serif style of Cutive. Sans-Serif matches better, so I've added a variable for Chinese to use sans-serif in headings as well.
@freakboy3742 @kattni I'm interested in hearing thoughts on this change. For reference, sans-serif Chinese with 400 weight:
Serif Chinese with 400 weight:
PR Checklist: