Problem in Chrome?

Micha Mirck
Posts: 23
Opening https://beautifulwebtype.com/zilla-slab/ in Chrome or Edge doesn't display the four different figure sets, but only the default figures. In firefox it is right. Does anyone know more about this issue?


But when an extra gylph is added to Chrome it works....???



But when an extra gylph is added to Chrome it works....???

0
Comments
-
An explanation here would be that since digits are assigned Common script, Chrome is trying to shape them with DFLT OpenType script and the font does not have lookups under DFLT script. Adding a Latin letter will cause them to be shaped with latn OpenType script. Firefox may be falling to Latin when no script is detected.
4 -
Actually the font contains one lookup in the DFLT script (in the Slashed Zero feature), so removing the DFLT script solves the issue.I'll add this inconsistent behaviour between web browsers in this forum post:Microsoft Edge has a similar issue.
1 -
I'm not done testing yet, but it seems dat DFLT is needed. FiraSans works fine and has this code:feature lnum { # Lining Figures# Latinlanguage AZE ; # Azerilanguage AFK ; # Afrikaanslanguage PLK ; # Polishlanguage TRK ; # Turkishlanguage MOL ; # Moldavianlanguage ROM ; # Romanianlanguage CAT ; # Catalanlanguage TAT ; # Tatarlanguage CRT ; # Crimean Tatarlanguage KAZ ; # Kazakhscript DFLT; # DEFAULTscript grek; # Greekscript cyrl; # Cyrillic} lnum;0
-
I think the feature code misses script latn;
feature zero { language dflt;
Should be:feature zero {
script latn;
language dflt;
1 -
If you have any feature that is using ‘script latn’, then all other features need to be registered for ‘dflt’ and ‘latn’.
you can do that like thisfeature xxxx {
lookup xxxx_a {
sub a by b;
} xxxx_a;
script latn;
lookup xxxx_a;
} xxxx;
1 -
George. I just now noticed your reply. Thank you very much!0
Categories
- All Categories
- 46 Introductions
- 3.8K Typeface Design
- 480 Type Design Critiques
- 558 Type Design Software
- 1.1K Type Design Technique & Theory
- 647 Type Business
- 837 Font Technology
- 29 Punchcutting
- 513 Typography
- 119 Type Education
- 319 Type History
- 75 Type Resources
- 110 Lettering and Calligraphy
- 31 Lettering Critiques
- 79 Lettering Technique & Theory
- 540 Announcements
- 88 Events
- 112 Job Postings
- 168 Type Releases
- 171 Miscellaneous News
- 275 About TypeDrawers
- 53 TypeDrawers Announcements
- 120 Suggestions and Bug Reports