fonts: use woff & woff2 format for D-DIN fonts (#40605)

This commit is contained in:
Thomas Jund 2020-03-10 10:36:49 +01:00
parent c876a38fdd
commit c745e0bb60
10 changed files with 7 additions and 4 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
static/fonts/din/D-DIN.woff Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -2,19 +2,22 @@ $din-font-path: '/static/fonts/din' !default;
@font-face {
font-family: 'Din';
src: url('#{$din-font-path}/DIN.otf') format('opentype');
src: url('#{$din-font-path}/D-DIN.woff2') format('woff2'),
url('#{$din-font-path}/D-DIN.woff') format('woff');
font-weight: normal;
}
@font-face {
font-family: 'Din';
src: url('#{$din-font-path}/DINBold.otf') format('opentype');
src: url('#{$din-font-path}/D-DIN-Bold.woff2') format('woff2'),
url('#{$din-font-path}/D-DIN-Bold.woff') format('woff');
font-weight: bold;
}
@font-face {
font-family: 'Din';
src: url('#{$din-font-path}/DINItalic.otf') format('opentype');
src: url('#{$din-font-path}/D-DIN-Italic.woff2') format('woff2'),
url('#{$din-font-path}/D-DIN-Italic.woff') format('woff');
font-weight: normal;
font-style: italic;
}
}