Lorp / samsa

Variable font inspector
https://lorp.github.io/samsa/
Apache License 2.0
243 stars 23 forks source link

Samsa shows interpolated instance 500 at 499.99 #78

Open RosaWagner opened 2 years ago

RosaWagner commented 2 years ago

Problem is when there is substitution at 500, then it is not displayed.

Test Case In this test, letter G is supposed to be a circle in Medium SemiExpanded instance.

Lorp commented 2 years ago

That is curious. The substitution happens at the very next possible value for the axis (when you use the arrow buttons to increase by a tiny amount).

glyph wght (dec) wght (normhex) Samsa Webfont
G 499.9755859375 0x1554 rectangle rectangle
G 499.993896484375 0x1555 circle rectangle
G 500.01220703125 0x1556 circle circle

Are you able to test on another platform, Windows or Android, to verify this is a bug in Samsa rather than the Apple renderer?

Could you also write down what the subsitutions are supposed to be doing, since there are multiple overlapping substitutions?

ErwinDenissen commented 2 years ago

Samsa works as expected, e.g. it shows the circle with the Medium SemiExpanded instance. However directly viewing the variable font in Edge, Chrome, or Firefox on Windows all show a rectangle. It must be some rounding issue.