General developer forum

Adding font to Moodle block plugin

 
Picture of Michaël Lebeau
Adding font to Moodle block plugin
 

Hey everyone,


I'm trying to add my own .ttf font file to a personalised Moodle block plugin.

The path doesn't seems to work for :


src: url(fonts/space.ttf);
src: url(/fonts/space.ttf);
src: url(./fonts/space.ttf);

in my style.css .


Does anyone know how to get them in a plugin css ? The documentation is not KISS-friendly at all.


See ya,

Epistol

 
Average of ratings: -