Use of font-face in a theme

Re: Use of font-face in a theme

by Mary Evans -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

I just noticed that you forgot to add theme in front of this function in the lib.php you uploaded in one of your previous posts...

function clean_set_fontwww($css) {
 global $CFG;
 $tag = 'setting:fontwww';
 $css = str_replace($tag, $CFG->wwwroot . '/theme/clean/style/font/', $css);
 return $css;
}

It should read like so...

function theme_clean_set_fontwww($css) {
 global $CFG;
 $tag = 'setting:fontwww';
 $css = str_replace($tag, $CFG->wwwroot . '/theme/clean/style/font/', $css);
 return $css;
}

As for the Accessibility Blocks...its author, Mark Johnson, cannot add fonts to it yet as this functionality is not available in Moodle until 2.6 is released later this year, then things may change. You will be able to add as many fonts as you like to a theme, and all you will need to do is follow these guidelines to the letter...

http://docs.moodle.org/dev/Themes_overview#Adding_custom_fonts

Cheers

Mary