-
Notifications
You must be signed in to change notification settings - Fork 18
Fallback font for roboto #12
Comments
The version of roboto that we are using only has Latin glyphs. It falls back to the system font for individual glyphs when they are missing. They should be coming in as medium though. @ShepJGoogle found a bug with fontWithSize: losing medium weight when you use the system font. |
Thanks! http://crbug.com/698716 is showing the difference in weight, using Roboto and the default font. This screenshot show an Arabic test which should contains normal and medium font. No difference is visible. I am not sure I understand the bug you are describing with the fontWithSize:. Does this mean that when the library fall back for the system font it looses the medium weight? |
The material spec calls for bold when using tall languages. https://material.io/guidelines/style/typography.html#typography-styles |
Can you try using bold and see if you still have the same problem? |
Change medium to bold was the fix I implemented, the difference was visible. |
@ShepJGoogle in my tests i found that [UIFont boldSystemFontOfSize:20] would return SF Semi-Bold |
Roboto does not have characters for Arabic languages. It seems that the fallback font used in this case does not care about the style used, i.e. when using medium font, it is displayed as regular font.
The text was updated successfully, but these errors were encountered: