I have a certain font which I use on my business cards and for the sake of consistency I would like to use them on my site. I am not finding a way to upload the font and cannot find it in the customization menus. Help would be greatly appreciated!
相关问题
- how to Enumerate local fonts in silverlight 4
- Scaling png font down
- GD error while try load font
- Rails 4 - Custom Fonts
- Underline is drawn outside of rectangle reported b
To make this work cross browser you need to access your .htaccess file on the server where the font is hosted and add the following line:
Docs here: https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSMissingAllowOrigin
Yes you can upload a custom font using the @fontface feature in CSS, but you'll need to have access to a server to store and upload it from. I used the Luna theme and this worked like a charm:
Insert this code into your CSS file and replace the URL with the proper location of your font:
I chose to put mine in the 'Elements/Shared' section of my theme, a little ways down from the beginning of your CSS file.
Then change this section of your CSS:
To this:
And you should be all set, the font will be changed throughout your theme. This has only been tested on the Luna theme, but I imagine this should work universally across all of the themes.
bigcartel fonts custom