Skip to content

Commit 896270a

Browse files
Nemo157jyn514
authored andcommitted
Add woff2 versions of _Source Code Pro_ v2.038/v1.058-it
1 parent 37d7d98 commit 896270a

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

static/SourceCodePro-It.ttf.woff2

43.8 KB
Binary file not shown.
51 KB
Binary file not shown.
51.1 KB
Binary file not shown.

templates/style/base.scss

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,25 @@
4242
font-weight: 400;
4343
/* Avoid using locally installed font because bad versions are in circulation:
4444
* see https://github.com/rust-lang/rust/issues/24355 */
45-
src: url("SourceCodePro-Regular.ttf.woff") format('woff');
45+
src:
46+
url("SourceCodePro-Regular.ttf.woff2") format('woff2'),
47+
url("SourceCodePro-Regular.ttf.woff") format('woff');
4648
}
4749
@font-face {
4850
font-family: 'Source Code Pro';
4951
font-style: normal;
5052
font-weight: 600;
51-
src: url("SourceCodePro-Semibold.ttf.woff") format('woff');
53+
src:
54+
url("SourceCodePro-Semibold.ttf.woff2") format('woff2'),
55+
url("SourceCodePro-Semibold.ttf.woff") format('woff');
5256
}
5357
@font-face {
5458
font-family: 'Source Code Pro';
5559
font-style: italic;
5660
font-weight: 400;
57-
src: url("SourceCodePro-It.ttf.woff") format('woff');
61+
src:
62+
url("SourceCodePro-It.ttf.woff2") format('woff2'),
63+
url("SourceCodePro-It.ttf.woff") format('woff');
5864
}
5965

6066
html,

0 commit comments

Comments
 (0)