With my current project (it started on 9.3 and continues on 10.1), we are indeed using custom fonts. However, when I would use the
sxa upload command, I found that, while almost everything would upload to the theme in the media library, the font files would not.
Thanks to Mark Cassidy for this, but the fix really is pretty simple. The problem is that the
fonts directory of your local theme just isn’t anywhere in the config to be watched or uploaded. So, open up the
gulp/config.js and add
'fonts/**/*.*' to one of the sections. I chose the
That’s all with this one!
Happy Sitecore trails, my friend!