PLEASE NOTE THIS METHOD IS ONLY POSSIBLE IN MOODLE 2.6
WHICH WILL BE RELEASED IN A FEW WEEKS TIME.
For more details please read...
http://docs.moodle.org/dev/Themes_overview#Adding_custom_fonts
Ok that said...It goes something like this...
Assuming you want to use FontAwesome in your theme.
Download the FontAwsome from HERE
Extract all the fonts from that zip file to your Moodle site and place them in a New Folder called fonts like so...
moodle/theme/yourthemename/fonts
Then add the font-awesome.css file in that zip to your theme's style folder and then change the @font-face section inside that file to read as follows...
@font-face {
font-family: 'FontAwesome';
src: url([[font:theme|fontawesome-webfont.eot]]);
src: url([[font:theme|fontawesome-webfont.eot]]) format('embedded-opentype'),
url([[font:theme|fontawesome-webfont.woff]]) format('woff'),
url([[font:theme|fontawesome-webfont.ttf]]) format('truetype'),
url([[font:theme|fontawesome-webfont.svg]]) format('svg');
font-weight: normal;
font-style: normal;
}
Then whenever you want to use the font you just use font-family CSS rule...
For example:
[class^="icon-"],
[class*=" icon-"] {
font-family: FontAwesome;
font-weight: normal;
font-style: normal;
text-decoration: inherit;
-webkit-font-smoothing: antialiased;
*margin-right: .3em;
}
Last but not the least:
DO NOT FORGET TO ADD THE NAME OF THE font-awesome.css FILE TO YOUR THEME'S config.php or else it will not work.
$THEME->sheets = array(
'pagelayout,
'core',
'font-awesome',
'settings'
);
If you have any questions please do not hesitate to ask.
Cheers
Mary