I'm trying to add an Arabic font to the TinyMce editor in Moodle 2.5 - I don't speak Arabic so I'm testing with a font called akaDora downloaded from http://www.fonts2u.com/akadora.
I downloaded the @face-font file and extracted the files to /theme/mytheme/fonts/
/theme/mytheme/fonts/akaDora.eot
/theme/mytheme/fonts/akaDora.woff
/theme/mytheme/fonts/akaDora.ttf
/theme/mytheme/fonts/akaDora.svg
Then added the following to /theme/mytheme/style/custom.css
@font-face { font-family:'aka_Dora'; src:url('/theme/mytheme/fonts/akaDora.eot') format('eot'), url('/theme/mytheme/fonts/akaDora.woff') format('woff'), url('/theme/mytheme/fonts/akaDora.ttf') format('truetype'), url('/theme/mytheme/fonts/akaDora.svg#akaDora') format('svg'); font-weight:normal; font-style:normal; }
I tried url([[font:theme|akaDora.eot]]) etc but this didn't pick up the files.
I then added aka_Dora=aka_Dora to the list of available fonts in /admin/settings.php?section=editorsettingstinymce
When I use the editor I can see the font in the drop down list - it also displays the text in the font.
But if I select the font and start typing, it displays in plain text.
It displays correctly when the text is saved but this won't be useful when typing Arabic.
I also tried copying the font files into /lib/editor/tinymce/tiny_mce/3.5.8/themes/advanced/fonts/
and adding this to /theme/mytheme/editor.css
@font-face {
font-family:'akaDora';
src:url('/lib/editor/tinymce/tiny_mce/3.5.8/themes/advanced/fonts/akaDora.eot') format('eot'),
url('/lib/editor/tinymce/tiny_mce/3.5.8/themes/advanced/fonts/akaDora.woff') format('woff'),
url('/lib/editor/tinymce/tiny_mce/3.5.8/themes/advanced/fonts/akaDora.ttf') format('truetype'),
url('/lib/editor/tinymce/tiny_mce/3.5.8/themes/advanced/fonts/akaDora.svg#akaDora') format('svg');
font-weight:normal;
font-style:normal;
}
but still doesn't display.
Any ideas?