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
- 43 Introductions
- 3.7K Typeface Design
- 799 Font Technology
- 1K Technique and Theory
- 617 Type Business
- 444 Type Design Critiques
- 541 Type Design Software
- 30 Punchcutting
- 136 Lettering and Calligraphy
- 83 Technique and Theory
- 53 Lettering Critiques
- 483 Typography
- 301 History of Typography
- 114 Education
- 68 Resources
- 498 Announcements
- 79 Events
- 105 Job Postings
- 148 Type Releases
- 165 Miscellaneous News
- 269 About TypeDrawers
- 53 TypeDrawers Announcements
- 116 Suggestions and Bug Reports