Adding a Font Family - Moodle 3.8+

Adding a Font Family - Moodle 3.8+

by Dave Emsley -
Number of replies: 1

Hi All,

I'm happy adding a single font to my theme but how does this work with a font family?  For example Google's Raleway font.  If I download the font family I get:

Do I create a new "fontface" for each one I use as per the document:  https://docs.moodle.org/38/en/How_to_add_custom_fonts_in_a_theme

Or do I create a single fontface and use that.  If I do that will <strong> know to pick up the Raleway-Bold or will it go ExtraBold etc?


Hope this makes sense,

Dave

Average of ratings: -
In reply to Dave Emsley

Re: Adding a Font Family - Moodle 3.8+

by John Provasnik -
Picture of Particularly helpful Moodlers Picture of Testers
I've added Google's Oswald font by doing the following:

Step 1 - Navigate to Appearance - Additional HTML and add to the within Head:
<link href="https://fonts.googleapis.com/css?family=Raleway|Oswald|Vollkorn|Work+Sans" rel="stylesheet">

Step 2 - navigate to Plugins - Text Editors - Atto - Font Family and add to the list of font:
Raleway=raleway,sans-serif;


Attachment Screen Shot 2020-05-28 at 12.44.25 PM.png