W
W
wakenby2021-02-04 21:23:42
css
wakenby, 2021-02-04 21:23:42

Why is the font not displaying correctly in firefox?

I connected the font, but in firefox it is somehow sharp, crooked, cut off.

Here is the display in google chrome, everything is fine:
601c3b5746fe3230692584.png

But in firefox everything is terrible:
601c3b7472458640254229.png

Here is the css code

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms-Thin.woff2');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms-ExtraLight.woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms-Light.woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms-Regular.woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms-Medium.woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms-Bold.woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms-ExtraBold.woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms-Black.woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}



I also tried to include fonts in different formats, but it did not help either.

@font-face {
  font-family: 'TT Norms ExtraBold';
  src: url('/assets/fonts/TTNorms/TTNorms-ExtraBoldItalic.eot');
  src: local('TT Norms ExtraBold Italic'), local('TTNorms-ExtraBoldItalic'),
  url('/assets/fonts/TTNorms/TTNorms-ExtraBoldItalic.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-ExtraBoldItalic.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms/TTNorms-Bold.eot');
  src: local('TT Norms Bold'), local('TTNorms-Bold'),
  url('/assets/fonts/TTNorms/TTNorms-Bold.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-Bold.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms/TTNorms-Thin.eot');
  src: local('TT Norms Thin'), local('TTNorms-Thin'),
  url('/assets/fonts/TTNorms/TTNorms-Thin.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-Thin.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms/TTNorms-Regular.eot');
  src: local('TT Norms Regular'), local('TTNorms-Regular'),
  url('/assets/fonts/TTNorms/TTNorms-Regular.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-Regular.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'TT Norms Thin';
  src: url('/assets/fonts/TTNorms/TTNorms-ThinItalic.eot');
  src: local('TT Norms Thin Italic'), local('TTNorms-ThinItalic'),
  url('/assets/fonts/TTNorms/TTNorms-ThinItalic.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-ThinItalic.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-ThinItalic.ttf') format('truetype');
  font-weight: 100;
  font-style: italic;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms/TTNorms-Italic.eot');
  src: local('TT Norms Italic'), local('TTNorms-Italic'),
  url('/assets/fonts/TTNorms/TTNorms-Italic.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-Italic.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms/TTNorms-Heavy.eot');
  src: local('TT Norms Heavy'), local('TTNorms-Heavy'),
  url('/assets/fonts/TTNorms/TTNorms-Heavy.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-Heavy.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-Heavy.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms/TTNorms-Light.eot');
  src: local('TT Norms Light'), local('TTNorms-Light'),
  url('/assets/fonts/TTNorms/TTNorms-Light.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-Light.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'TT Norms Black';
  src: url('/assets/fonts/TTNorms/TTNorms-BlackItalic.eot');
  src: local('TT Norms Black Italic'), local('TTNorms-BlackItalic'),
  url('/assets/fonts/TTNorms/TTNorms-BlackItalic.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-BlackItalic.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms/TTNorms-ExtraLight.eot');
  src: local('TT Norms ExtraLight'), local('TTNorms-ExtraLight'),
  url('/assets/fonts/TTNorms/TTNorms-ExtraLight.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-ExtraLight.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: 'TT Norms Light';
  src: url('/assets/fonts/TTNorms/TTNorms-LightItalic.eot');
  src: local('TT Norms Light Italic'), local('TTNorms-LightItalic'),
  url('/assets/fonts/TTNorms/TTNorms-LightItalic.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-LightItalic.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'TT Norms ExtraLight';
  src: url('/assets/fonts/TTNorms/TTNorms-ExtraLightItalic.eot');
  src: local('TT Norms ExtraLight Italic'), local('TTNorms-ExtraLightItalic'),
  url('/assets/fonts/TTNorms/TTNorms-ExtraLightItalic.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-ExtraLightItalic.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-ExtraLightItalic.ttf') format('truetype');
  font-weight: 200;
  font-style: italic;
}

@font-face {
  font-family: 'TT Norms Bold';
  src: url('/assets/fonts/TTNorms/TTNorms-BoldItalic.eot');
  src: local('TT Norms Bold Italic'), local('TTNorms-BoldItalic'),
  url('/assets/fonts/TTNorms/TTNorms-BoldItalic.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-BoldItalic.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-BoldItalic.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms/TTNorms-Medium.eot');
  src: local('TT Norms Medium'), local('TTNorms-Medium'),
  url('/assets/fonts/TTNorms/TTNorms-Medium.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-Medium.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms/TTNorms-Black.eot');
  src: local('TT Norms Black'), local('TTNorms-Black'),
  url('/assets/fonts/TTNorms/TTNorms-Black.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-Black.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'TT Norms Medium';
  src: url('/assets/fonts/TTNorms/TTNorms-MediumItalic.eot');
  src: local('TT Norms Medium Italic'), local('TTNorms-MediumItalic'),
  url('/assets/fonts/TTNorms/TTNorms-MediumItalic.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-MediumItalic.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: 'TT Norms Heavy';
  src: url('/assets/fonts/TTNorms/TTNorms-HeavyItalic.eot');
  src: local('TT Norms Heavy Italic'), local('TTNorms-HeavyItalic'),
  url('/assets/fonts/TTNorms/TTNorms-HeavyItalic.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-HeavyItalic.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-HeavyItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
}

@font-face {
  font-family: 'TT Norms';
  src: url('/assets/fonts/TTNorms/TTNorms-ExtraBold.eot');
  src: local('TT Norms ExtraBold'), local('TTNorms-ExtraBold'),
  url('/assets/fonts/TTNorms/TTNorms-ExtraBold.eot?#iefix') format('embedded-opentype'),
  url('/assets/fonts/TTNorms/TTNorms-ExtraBold.woff') format('woff'),
  url('/assets/fonts/TTNorms/TTNorms-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
}

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg, 2021-02-04
@politon

woff format add

V
Vladimir, 2021-02-04
@Casufi

In Firefox, in the developer tools, there is a wonderful tab with fonts, which shows which style is currently connected, what characteristics.
Right button - Inspect Element and there Font tab

S
sashabeep, 2021-02-05
@sashabeep

ctrl+0 ?
-webkit-font-smoothing?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question