Download fonts
Download the fonts you need and put it into static/fonts
Import your fonts
@font-face {
font-family: "LXGWWenKai-Regular";
src: url("/fonts/lxgw-wenkai/LXGWWenKai-Regular.ttf") format("truetype");
}
Apply it in css
body {
font-family: LXGWWenKai-Regular;
}
Use in PaperMod
Put your own css file in assets/css/extended/custom_fonts.css
Import multi-weight fontfamily
@font-face {
font-family: "LXGWWenKai";
src: url("/fonts/lxgw-wenkai/LXGWWenKai-Light.ttf") format("truetype");
font-weight: lighter;
font-style: normal;
}
@font-face {
font-family: "LXGWWenKai";
src: url("/fonts/lxgw-wenkai/LXGWWenKai-Regular.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: "LXGWWenKai";
src: url("/fonts/lxgw-wenkai/LXGWWenKai-Bold.ttf") format("truetype");
font-weight: bold;
font-style: normal;
}
Use cdn
@import url('https://cdn.jsdelivr.net/npm/jetbrains-mono@1.0.6/css/jetbrains-mono.min.css');
code {
font-family: 'JetBrains Mono';
}