Theme Font not working - Moodle 3.6+

Theme Font not working - Moodle 3.6+

by Dave Emsley -
Number of replies: 2

As per title.  The font file is in /theme/mytheme/fonts/

CSS file says:

@font-face {
    font-family: 'Handel Gothic';
    src: url([[font:theme|handel.ttf]]) format('truetype');
}
h1,h2,h3,h4,h5,h6 {
    font-family: 'Handel Gothic', Arial, Helvetica, sans-serif;
}

As per the https://docs.moodle.org/36/en/How_to_add_custom_fonts_in_a_theme document.

In the properties inspector I get:

h1, h2, h3, h4, h5, h6 {
    font-family: "Handel Gothic",Arial,Helvetica,sans-serif;
}

Which is what I would expect except for "Handel Gothic" not being used.


Where am I going wrong with this please?

Cheers

Dave


Average of ratings: -
In reply to Dave Emsley

Re: Theme Font not working - Moodle 3.6+

by Michael Milette -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators
Hi Dave,

If you go into the network tab of the inspector and reload the page, do you see any lines with a status of 404?

Michael
Average of ratings: Useful (1)
In reply to Michael Milette

Re: Theme Font not working - Moodle 3.6+

by Dave Emsley -
Hi Michael,

No the font file seems to be loading -


Cheers

Dave
Attachment MMMoodle.png