rosettatype / hyperglot

Hyperglot: a database and tools for detecting language support in fonts
http://hyperglot.rosettatype.com
GNU General Public License v3.0
162 stars 22 forks source link

Enable locl variants for some languages, e.g. BGR #40

Closed kontur closed 3 years ago

kontur commented 3 years ago

Can you just add stylistic sets, with a Bulgarian form in Cyrillic in the part for Bulgarian language. Аt the moment only the main form of Cyrillic is displayed. I guess it won’t be technically difficult. This will be of great benefit to people who prefer to use the Bulgarian form of Cyrillic.

For starters we should add the lang attribute to each charset preview and see what that does. Triggering specific stylistic sets is obviously not an option for local fonts (or maybe there could be an UI for it?) but we might double check with the Noto Sans default.

kontur commented 3 years ago

This is implemented to the degree that languages which have a two letter iso code will have their html lang attribute set and fonts that make use of locl features to show alternates will render those. As such, Noto Sans will have glyph alternates for example for Serbian/Macedonian, but not for Bulgarian as suggested in the original feedback. This is entirely up to the font (also for local fonts the user picks) so what is shown depends.