1
1
mirror of https://github.com/i-tu/Hasklig.git synced 2024-07-07 07:26:26 +03:00

CSS: implement Variable Fonts where supported

This commit is contained in:
Frank Grießhammer 2020-11-11 14:28:33 +01:00
parent 2fca874145
commit bfab0851aa
6 changed files with 22 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -9,7 +9,7 @@
<style>
body {
font-family: 'Source Code Pro', monospace;
font-family: 'Source Code Pro VF', 'Source Code Pro', monospace;
overflow-x: hidden;
font-size: 100%;
}
@ -89,7 +89,7 @@
content: attr(data-ribbon);
color: #fff;
font: 700 13px 'Source Code Pro';
font: 700 13px 'Source Code Pro VF', 'Source Code Pro';
line-height: 1.54em;
text-decoration: none;
text-align: center;

View File

@ -123,3 +123,23 @@
src: url('WOFF2/TTF/SourceCodePro-BlackIt.ttf.woff2') format('woff2'),
url('WOFF/OTF/SourceCodePro-BlackIt.otf.woff') format('woff');
}
@supports (font-variation-settings:normal) {
@font-face{
font-family: 'Source Code Pro VF';
font-weight: 200 900;
font-style: normal;
font-stretch: normal;
src: url('WOFF2/SourceCodeVariable-Roman.otf.woff2') format('woff2-variations'),
url('WOFF2/SourceCodeVariable-Roman.ttf.woff2') format('woff2-variations');
}
@font-face{
font-family: 'Source Code Pro VF';
font-weight: 200 900;
font-style: italic;
font-stretch: normal;
src: url('WOFF2/SourceCodeVariable-Italic.otf.woff2') format('woff2-variations'),
url('WOFF2/SourceCodeVariable-Italic.ttf.woff2') format('woff2-variations');
}
}