Links

Google/Custom Fonts and GDPR

Site administration -> Appearance -> Monocolor -> Advanced settings -> Font files
​

Learn more about self-hosted fonts.

1. Files to upload -> Advanced -> fontfiles

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/​
@font-face {
font-family: 'MyWebFont';
src: url('webfont.eot'); /* IE9 Compat Modes */
src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('webfont.woff2') format('woff2'), /* Super Modern Browsers */
url('webfont.woff') format('woff'), /* Pretty Modern Browsers */
url('webfont.ttf') format('truetype'), /* Safari, Android, iOS */
url('webfont.svg#svgFontName') format('svg'); /* Legacy iOS */
}

​

Raw SCSS to add

Change 'YOURURL' to the real one eg. for local environment:
Of course, if you are using Moodle File Manager. If not, probably you know what you doing :)
  • localhost/....
  • https://url.com/...
1
@font-face {
2
font-family: 'Poppins', Arial, Helvetica, sans-seri;
3
src: url('YOUR_URL/pluginfile.php/1/theme_monocolor/fontfiles/0/Poppins-Medium.eot');
4
src: url('YOUR_URL/pluginfile.php/1/theme_monocolor/fontfiles/0/Poppins-Medium.eot?#iefix') format('embedded-opentype'),
5
url('YOUR_URL/pluginfile.php/1/theme_monocolor/fontfiles/0/Poppins-Medium.woff2') format('woff2'),
6
url('YOUR_URL/pluginfile.php/1/theme_monocolor/fontfiles/0/Poppins-Medium.woff') format('woff'),
7
url('YOUR_URL/pluginfile.php/1/theme_monocolor/fontfiles/0/Poppins-Medium.ttf') format('truetype');
8
font-weight: 500;
9
font-style: normal;
10
font-display: swap;
11
}
12
13
@font-face {
14
font-family: 'Poppins', Arial, Helvetica, sans-seri;
15
src: url('YOUR_URL/pluginfile.php/1/theme_monocolor/fontfiles/0/Poppins-Regular.eot');
16
src: url('YOUR_URL/pluginfile.php/1/theme_monocolor/fontfiles/0/Poppins-Regular.eot?#iefix') format('embedded-opentype'),
17
url('YOUR_URL/pluginfile.php/1/theme_monocolor/fontfiles/0/Poppins-Regular.woff2') format('woff2'),
18
url('YOUR_URL/pluginfile.php/1/theme_monocolor/fontfiles/0/Poppins-Regular.woff') format('woff'),
19
url('YOUR_URL/pluginfile.php/1/theme_monocolor/fontfiles/0/Poppins-Regular.ttf') format('truetype');
20
font-weight: normal;
21
font-style: normal;
22
font-display: swap;
23
}
24
25
@font-face {
26
font-family: 'Poppins', Arial, Helvetica, sans-seri;
27
src: url('YOUR_URL/pluginfile.php/1/theme_monocolor/fontfiles/0/Poppins-Bold.eot');
28
src: url('YOUR_URL/pluginfile.php/1/theme_monocolor/fontfiles/0/Poppins-Bold.eot?#iefix') format('embedded-opentype'),
29
url('YOUR_URL/pluginfile.php/1/theme_monocolor/fontfiles/0/Poppins-Bold.woff2') format('woff2'),
30
url('YOUR_URL/pluginfile.php/1/theme_monocolor/fontfiles/0/Poppins-Bold.woff') format('woff'),
31
url('YOUR_URL/pluginfile.php/1/theme_monocolor/fontfiles/0/Poppins-Bold.ttf') format('truetype');
32
font-weight: 700;
33
font-style: normal;
34
font-display: swap;
35
}
36
body {
37
font-family: 'Poppins', Arial, Helvetica, sans-serif;
38
}

How to find Google Font files?

Go to Google or DuckDuckGo and search e.g "google fonts poppins github"

Step by step

  1. 1.
    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.
  2. 2.
    Sometimes, users don't want to use medium weight. If it is your case, remember to set the Font weight: Medium to 400 (Monocolor -> Customization -> Google Font -> Font weight: Medium)
  3. 3.
    Set the Font Name (Monocolor -> Customization -> Google Font - Font Name (Body))
  4. 4.
    Upload the font package (Monocolor -> Advanced -> Font files)
  5. 5.
  6. 6.
    Save changes