cssgoogle-chromefirefoxfontsopentype

OpenTypeFont not displayed on Firefox and Safari


I am trying to use an OpenTypeFont font, AXIS Basic ProN. This font is working well on Chrome:

chrome

but not on Firefox and Safari:

firefox

On Firefox, I can observe the following warnings on the console:

warnings

It seems to explain that OpenTypeFont is not supported on Firefox and Safari whereas https://caniuse.com/ttf is telling otherwise

I created a sandbox in order to properly illustrate my issue: https://codesandbox.io/s/kind-panini-ew9ie

I only got the .otf files available for that font.

Any thoughts on that?


Solution

  • You're using format("otf"), but "otf" is not a valid format value in an @font-face rule. Check the CSS Fonts Module spec. You should be using "opentype".