-
Notifications
You must be signed in to change notification settings - Fork 17
font-weight:light; not working correctly [Sketch issue] #19
Comments
Thanks for the report. I will check it. |
Sketch handles font weight selection by UI and by API in slightly different ways. We met this problem before with other font and the only one solution which we found was to patch the font using FontForge. |
I will continue a research to workaround it somehow. |
Another solution is to uninstall Thin and Ultra Thin fonts. In this case font-weight:200 will select Light font. |
Ok, I submited a bug report to Sketch. Will keep you informed. |
Do you know what the fix is in fontforge? I am running into the same issue. |
@tijmenvangurp I found a workaround for the light Font doing it like this: That workaround is just working if you don't want to use all the font-weights. |
Maybe simple css don't have light font size? https://htmldog.com/references/css/properties/font-weight/ |
@tijmenvangurp I tried to forget Fontforge dark magic. Because it's a nightmare. |
It might be that sketch is following https://docs.microsoft.com/en-us/typography/opentype/spec/os2#usweightclass the OpenType specs? I will try to change the weight names to what the open type has and see if that works. |
Wow. Great.
… On 16 Apr 2020, at 10:09, Tijmen van Gurp ***@***.***> wrote:
It might be that sketch is following https://docs.microsoft.com/en-us/typography/opentype/spec/os2#usweightclass <https://docs.microsoft.com/en-us/typography/opentype/spec/os2#usweightclass> the OpenType specs? I will try to change the weight names to what the open type has and see if that works.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#19 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AEMQVAU43FZLJLPXHS3RDJTRM2VI5ANCNFSM4J52T5WA>.
|
In the end, I had to change 3 font-weight names. I followed this table and everything works |
font-weight:light; is not working with Roboto. Didn't try with other fonts.
When I apply the Design Tokens in Sketch the font-weight added is regular.
other Font-Styles as thin or bold are working correctly
The text was updated successfully, but these errors were encountered: