Provide jetbrains mono font

This commit is contained in:
Gabriel Augendre 2022-03-30 20:26:30 +02:00
parent b70a9105e8
commit 047b303202
6 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,20 @@
@font-face {
font-family: 'JetBrains Mono';
src: local("JetBrains Mono"),
url('/static/vendor/fonts/JetBrainsMono-VariableFont_wght.woff2') format("woff2-variations"),
url('/static/vendor/fonts/JetBrainsMono-VariableFont_wght.woff2') format("woff2 supports variations"),
url('/static/vendor/fonts/JetBrainsMono-VariableFont_wght.ttf') format("truetype-variations"),
url('/static/vendor/fonts/JetBrainsMono-VariableFont_wght.ttf') format("truetype supports variations");
font-weight: 100 800;
}
@font-face {
font-family: 'JetBrains Mono';
src: local("JetBrains Mono Italic"),
url('/static/vendor/fonts/JetBrainsMono-Italic-VariableFont_wght.woff2') format("woff2-variations"),
url('/static/vendor/fonts/JetBrainsMono-Italic-VariableFont_wght.woff2') format("woff2 supports variations"),
url('/static/vendor/fonts/JetBrainsMono-Italic-VariableFont_wght.ttf') format("truetype-variations"),
url('/static/vendor/fonts/JetBrainsMono-Italic-VariableFont_wght.ttf') format("truetype supports variations");
font-weight: 100 800;
font-style: italic;
}

View file

@ -21,6 +21,7 @@
<link rel="stylesheet" href="{% static "admonitions.css" %}" type="text/css">
{% if article and article.has_code %}
<link rel="stylesheet" href="{% static "vendor/codehilite.css" %}" type="text/css">
<link rel="stylesheet" href="{% static "vendor/fonts/jetbrains-mono.css" %}">
{% endif %}
{% if user.is_authenticated %}
<link rel="stylesheet" href="{% static "authenticated.css" %}">