Using WebFontLoader in index.html

This commit is contained in:
Nathan Peckham 2024-06-08 17:32:28 -05:00
parent 9a440752b9
commit 1e649ba557
2 changed files with 31 additions and 29 deletions

View file

@ -18,7 +18,13 @@
<!-- Google WebFont library for loading custom fonts. Helps to avoid FOUT. --> <!-- Google WebFont library for loading custom fonts. Helps to avoid FOUT. -->
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
<script>
WebFont.load({
google: {
families: ['Oswald', 'Josefin Slab', 'Playfair Display', 'Sedan SC', 'Material Symbols Outlined']
}
});
</script>
<script src="scripts/scripts.js"></script> <script src="scripts/scripts.js"></script>
<link rel="stylesheet" href="css/styles.css"> <link rel="stylesheet" href="css/styles.css">

View file

@ -1,5 +1 @@
WebFont.load({
google: {
families: ['Oswald', 'Josefin Slab', 'Playfair Display', 'Sedan SC', 'Material Symbols Outlined']
}
});