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

Bold font face should be mapped to "bold" font-weight #1256

Open
sawyerh opened this issue Nov 5, 2020 · 1 comment
Open

Bold font face should be mapped to "bold" font-weight #1256

sawyerh opened this issue Nov 5, 2020 · 1 comment

Comments

@sawyerh
Copy link

sawyerh commented Nov 5, 2020

  • Mayflower version: 10.1.0
  • Browser: Chrome

In CSS, the bold font-weight value maps to a numeric value of 700Source. Currently, when a website using Mayflower has an element styled with font-weight: bold, the element receives the "bolder" font weight, rather than "bold" 👇

image

Request:

It would be ideal if adopting websites could continue utilizing font-weight: bold and for Mayflower to apply the expected bold styling. I'm not sure how this works for variable fonts, but this used to be achieved by specifying font-weight: bold in the @font-face declaration of the font file.

Steps to reproduce on live site:

  1. Create a custom CSS style declaration that utilizes font-weight: bold
  2. Note that the weight applied is heavier than the Noto bold weight described in the documentation.
@sawyerh
Copy link
Author

sawyerh commented Nov 5, 2020

@clairesunstudio Apologies for not catching this during the PR review stage. Just noticed the text was heavier and did some digging to learn why.

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

No branches or pull requests

1 participant