Non-latin fonts #30
Comments
If there are characters in a language that are not supported by each font, it should be disabled through translation to avoid mixed typeface in an element. See the inline comments to translators in The theme shouldn't add any more Google fonts but I like the idea of adding some system fonts as alternatives for those languages.
|
I've seen the comment. This way we get default system fonts, and that's the core of the problem actually.
I don't say to add more, I'm talking about replacing with alternatives. There are lots of Google fonts that have cyrillic, vietnamese, thai and other non-latin subsets.
What about Win users? Linux? Helvetica / Helvetica Neue fonts are missing in Windows... |
I think if the fonts are off, the issue you illustrated won't happen though?
No? I thought you are suggesting to add alternatives by looking this comment.
Yes, that's correct. It's just like a progressive enhancement. I believe Arial will be used in Windows when we use |
The default serif (body) is much smaller than Merriweather. Check the 4th paragraph on 2nd picture. It's harder to read in this size, and line-height is too loose for this font-size. This is part of the issue.
I'm not offering to add another Google fonts, but to (possibly) replace currently selected fonts. Or, if we're not going to replace Montserrat and Merriweather, add alternative system fallback fonts, instead of just sans / serif. Like Georgia you've mentioned in your first comment.
Agree. Arial, Helvetica if available (always on Mac, sometimes on other OSes), Montserrat. |
However, Merriweather is not really an issue. The font itself has non-latin subsets, and, according to author, it might be available via Google Fonts soon. I wonder if there's a way to force Google to update the font... You can check it here https://github.com/EbenSorkin/Merriweather |
I think we both agree that my suggestion above is the best thing we can do now for those languages, then :) Let's hope Google updates Merriweather soon! |
Yes, I agree.
Right?
I'll try to force them by pinging wherever I can, starting from their GitHub repo :) |
Correct. If you want to make a PR, go for it. |
Ok, doing it. Thanks. |
PR is here. However, after some reading I see that for wider fallback on OSX (and iOS) people use |
@iamtakashi what do you think of the revised stack? I feel a design review would be great. |
I like the patch. @ihorvorotnov, can you refresh so that there is no conflict? Let's get it in. |
@iamtakashi sure, I'll fix it today. |
Update font stacks for better non-latin support, closes #30
All 3 fonts used in the theme have only Latin (2 of them - Latin Extended) subsets. For any language with non-latin characters (for example, any cyrillic language - ukrainian, russian, bulgarian etc) it defaults to system serif / sans-serif which are completely different and things look awful, sometimes just break (because of different character widths and baselines).
[grumble_mode=on]
[grumble_mode=off]
I'm not sure how to fix it better. One option I can think of is adding similar-looking fallback fonts with extra subsets, so our css declarations would look like
font-family: Merriweather, Some_Alternative, serif;
.Another option is to use alternatives right out of the box.
The text was updated successfully, but these errors were encountered: