Skip to content

Commit

Permalink
fix: use font-display: swap to avoid invisible text while loading
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisnewtn committed Feb 27, 2024
1 parent c565699 commit 826aecd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/style.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
@font-face {
font-family: 'Noto Serif';
font-display: swap;
src: local('Noto Serif'), local('NotoSerif'), url('assets/NotoSerif-VariableFont_wdth,wght.ttf') format('truetype');
}

@font-face {
font-family: 'Noto Mono';
font-display: swap;
src: local('Noto Mono'), url('assets/NotoSansMono-VariableFont_wdth,wght.ttf') format('truetype');
}

Expand Down

0 comments on commit 826aecd

Please sign in to comment.