Problem in Chrome?
Options

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
- 476 Type Design Critiques
- 555 Type Design Software
- 1.1K Type Design Technique & Theory
- 640 Type Business
- 831 Font Technology
- 29 Punchcutting
- 508 Typography
- 120 Type Education
- 313 Type History
- 75 Type Resources
- 109 Lettering and Calligraphy
- 30 Lettering Critiques
- 79 Lettering Technique & Theory
- 533 Announcements
- 86 Events
- 110 Job Postings
- 167 Type Releases
- 169 Miscellaneous News
- 274 About TypeDrawers
- 53 TypeDrawers Announcements
- 119 Suggestions and Bug Reports