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

Small issue with bold text #571

Closed
pcmill opened this issue Jun 7, 2016 · 5 comments
Closed

Small issue with bold text #571

pcmill opened this issue Jun 7, 2016 · 5 comments

Comments

@pcmill
Copy link

pcmill commented Jun 7, 2016

I use Sandstone as a theme for some of my projects. It seems that the bold text does not render properly. This is because an effect called faux-bold, as described here. A consequence of this problem is wrong kerning, some of the letters seem to melt together.

So instead of this:
faux-bold

We should get this:
faux-bold-solved

I simply replaced font-weight: bold with font-family: "Roboto Black" in this example.

@thomaspark
Copy link
Owner

Thanks for the bug report. What OS / browser are you seeing this on? I checked both Mac and Windows and it's rendering fine for me:

sandstone

Also, Google Fonts does not provide Roboto Black (only Roboto, Roboto Condensed, and Roboto Slab), so unless you have it installed locally, it should be getting replaced by another font when you declare font-family: "Roboto Black".

@pcmill
Copy link
Author

pcmill commented Jun 8, 2016

I can reproduce this bug on Firefox 46.0.1 / Windows 7. I also tried it on Chrome, Internet Explorer and Opera where this problem is not noticeable. This article says that Firefox does "smear" a font more, but that is assuming the font does not get loaded in. I do have the font installed locally.

I did notice you only load Roboto in weight 400 and 500. On the Google Fonts page itself they refer to bold as weight 700. Maybe that has something to do with it?

@thomaspark
Copy link
Owner

Tried it on Firefox 47 / Windows 8, and didn't get the blur. FYI I don't have the font installed locally.
capture

Could you try the following things and see if the blur goes away for either case?

  • Change b {font-weight: strong;} to b {font-weight: 500;}
  • Edit the theme to load Roboto at 700 as well

@pcmill
Copy link
Author

pcmill commented Jun 10, 2016

Both of the solutions worked in my case to get the bold text to render properly. Probably loading Roboto at 700 is a good idea so you don't have to rely on the interpretation of Firefox to much.

@thomaspark
Copy link
Owner

Done!

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

2 participants