💄 style: standarise font rendering across browsers
Use Source Serif ttf instead of otf for proper font rendering in Chromium. Use Cascadia Code SemiLight to reduce filesize.
This commit is contained in:
parent
526c8a1e67
commit
67aad3ef74
@ -10,7 +10,7 @@
|
||||
/* Copyright 2014 - 2023 Adobe (http://www.adobe.com/), with Reserved Font Name ‘Source’.adobe.com/). Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */
|
||||
font-family: 'Source Serif';
|
||||
src: local('Source Serif'),
|
||||
url('fonts/SourceSerif4Variable-Roman.otf.woff2') format("woff2");
|
||||
url('fonts/SourceSerif4Variable-Roman.ttf.woff2') format("woff2");
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
/* Copyright 2019 - Present, Microsoft Corporation, with Reserved Font Name 'Cascadia Code'. Licensed under the SIL Open Font License, Version 1.1. More information available at: http://scripts.sil.org/OFL */
|
||||
font-family: 'Cascadia Code';
|
||||
src: local('Cascadia Code'),
|
||||
url('fonts/CascadiaCode.woff2') format("woff2");
|
||||
url('fonts/CascadiaCode-SemiLight.woff2') format("woff2");
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
|
BIN
static/fonts/CascadiaCode-SemiLight.woff2
Normal file
BIN
static/fonts/CascadiaCode-SemiLight.woff2
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
static/fonts/SourceSerif4Variable-Roman.ttf.woff2
Normal file
BIN
static/fonts/SourceSerif4Variable-Roman.ttf.woff2
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user