Google/Custom Fonts and GDPR
Site administration -> Appearance -> Space -> Advanced settings -> Font files
Learn more about self-hosted fonts.
1. Files to upload -> Advanced -> Font Files
2. TTF, OTF, WOFF, WOFF2 or SVG Converter
Explanation:
Learn more How to use @font-face in CSS -> https://css-tricks.com/snippets/css/using-font-face-in-css/
Raw SCSS to add
Change 'YOURURL' to the real one eg. for local environment:
localhost/....
https://url.com/...
(Light Weight Text) font-weight:100|200|300;
(Regular Weight Text) font-weight:400;
(Medium Weight Text) font-weight:500|600;
(Bold Weight Text) font-weight:700|800|900;
Recommended CSS attributes:
For Regular Text: font-style: normal; font-weight:400;
For Regular Italic: font-style: italic; font-weight:400;
For Medium Text: font-style: normal; font-weight:500;
For Medium Italic: font-style: italic; font-weight:500;
For Bold Text: font-style: normal; font-weight:700;
For Bold Italic: font-style: italic; font-weight:700;
eot - format('embedded-opentype')
woff2 - format('woff2')
woff - format('woff')
ttf - format('truetype')
svg - format('svg')
How to find Google Font files?
Go to Google or DuckDuckGo and search e.g "google fonts poppins github"
Step by step
Get your custom/Google font. The layout is based on 3 font weights. Regular (400), Medium (500 or 600), Bold (700, 800 or 900). a. If you are using italic style, then you have to upload italic font variants for all font weights.
Sometimes, users don't want to use medium weight. If it is your case, remember to set the Font weight: Medium to 400 (Customization -> Google Font -> Font weight: Medium)
Set the Font Name (Space - Customization - Google Font - Font Name (Body))
Upload the font package (Space -> Advanced -> Font files)
Save changes
Last updated