-
Notifications
You must be signed in to change notification settings - Fork 364
Help adding custom fonts #818
Comments
We're working on documentation on working with custom fonts, but here's how it should look :
You will have to run |
Doesn't seem to be working. As soon as I add:
to
Replicated the error with a fresh Slate install and a different font |
Do you only get the error on the I just did the steps with a fresh Maybe it's a font problem? |
I get errors for all of the files (eot, ttf, woff, woff2). I'm on Windows 10, if that makes any difference I tested the fonts that I need (Corbel from Myfonts), then different fonts from Google Fonts and Fontsquirrel. I get errors for all of them. Could someone try downloading the woff+ttf Webfont kit with the default subset from here - https://www.fontsquirrel.com/fonts/open-sans And use the following CSS in
|
Seems like this is a Windows 10 (or at least my particular Windows 10 setup) issue. Tried replicating the above in Ubuntu VM and got no errors, everything working fine |
We did not extensively test on Windows but it's something we plan to do, so I can't really help you more right now. Gonna keep this open to make sure we look into it. Thanks for the issue, @donatasp94! |
@donatasp94 I would suggest to reference your fonts inside the theme.liquid file via the <style> tag. An example:
I hope this helps. |
Assets have been simplified in #850 and the change is now available in v1.0.0-beta.12 Docs that have also been updated: |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Problem
I'm quite new to Slate and can't seem to be able to figure out how to add custom fonts. I tried solutions from here - Add custom fonts to slate 1.x, but none of them work, I just get
Module parse failed: Unexpected character ' ' (1:4) You may need an appropriate loader to handle this file type.
errors.Any help would be much appreciated
The text was updated successfully, but these errors were encountered: