Задать вопрос

Почему шрифт в firefox отображается не правильно?

Подключил шрифт, но в firefox он какой-то острый, кривой, срезанный.

Вот отображение в google chrome, все отлично:
601c3b5746fe3230692584.png

А вот в firefox все ужасно:
601c3b7472458640254229.png

Вот код css

@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;
}



Так-же пробовал подключать шрифты в разном формате, но тоже не помогло

@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;
}

  • Вопрос задан
  • 712 просмотров
Подписаться 3 Средний 3 комментария
Пригласить эксперта
Ответы на вопрос 2
politon
@politon
HTML5,CSS3,JS,PHP,SQL,API,canvas,animation...
Формат woff добавь
Ответ написан
В Firefox в developer tools прекрасная вкладка со шрифтами, показывает какое начертание сейчас подключено, какие характеристики.
Правая кнопка - Inspect Element и там вкладка Font
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы