I was looking to add Geist as the header and body font and Cascadia Code as the code font for my personal garden webpage deployed using Quartz. As those fonts weren’t available in Google Fonts, I had to add them from my locally installed font base. The following documents the steps I had to take to add locally installed fonts to Quartz
I added the desired font files to /quartz/static/fonts
. After that, I heade over to custom.scss
(I edited this file in VS Code, so I used Ctrl + P and searched for the file by name to quickly retrieve it) and added the following lines of code
This adds the fonts in the TTF files into Quartz, which can then be set in quartz.config.ts
as usual