fonts: use woff & woff2 format for D-DIN fonts (#40605)
This commit is contained in:
parent
c876a38fdd
commit
c745e0bb60
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue