Personalize your content by adding custom fonts to your Drupal website using locally hosted fonts!
You can upload custom fonts to your website, by adding locally hosted fonts to your custom subtheme. You can learn how to create a subtheme in DXPR Subtheme documentation.
Follow the steps to start using locally hosted fonts:
- Upload your custom font file to FontSquirrel Generator and download the webfontkit
- Go to your custom subtheme folder in your directory
- Create a Fonts folder within the subtheme folder
- Inside the Fonts folder create a folder with the name of your custom font
- Add the webfontkit files to your custom font folder
- Go to your website and refresh the page
- Go to the Font tab in the Themes Settings
- Select your custom font
- Click on Save Configuration and you're done!