Skip to content

Commit 81d007c

Browse files
committed
Add italic variant of _Source Code Pro_ (v1.058)
Necessary because /static/ayu-highlight.css makes .hljs-comment use italics
1 parent 8358d01 commit 81d007c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

static/SourceCodePro-It.ttf.woff

57.1 KB
Binary file not shown.

templates/style/base.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@
5050
font-weight: 600;
5151
src: url("SourceCodePro-Semibold.woff") format('woff');
5252
}
53+
@font-face {
54+
font-family: 'Source Code Pro';
55+
font-style: italic;
56+
font-weight: 400;
57+
/* Avoid using locally installed font because bad versions are in circulation:
58+
* see https://github.com/rust-lang/rust/issues/24355 */
59+
src: url("SourceCodePro-It.ttf.woff") format('woff');
60+
}
5361

5462
html,
5563
input,

0 commit comments

Comments
 (0)