我试图在ckeditor中使用sinhala字体。我尝试根据this SO question向编辑器添加多个sinhala字体(Unicode而非unicode)字体,
config.js
config.contentsCss = [ CKEDITOR.getUrl('contents.css'),'fonts.css' ] ;
config.font_names = 'Iskolapota/iskolapota;' + config.font_names;
config.font_names = 'Amalee/amalee;' + config.font_names;
config.font_names = 'FM Abhaya/fm_abhay;' + config.font_names;
fonts.css
@font-face{
font-family: 'Iskolapota';
src: url('../../../font/iskolapota.ttf');
src: local("iskolapota"), url("../../../font/iskolapota.ttf")
format("truetype");
}
@font-face{
font-family: 'Amalee';
src: url('../../../font/amalee.ttf');
src: local("amalee"), url("../../../font/amalee.ttf") format("truetype");
}
@font-face{
font-family: 'FM Abhaya';
src: url('../../../font/fm_abhay.ttf');
src: local("fm_abhay"), url("../../../font/fm_abhay.ttf") format("truetype");
}
但没有奏效。我仍然可以在编辑器中看到只有英文字母。 Screenshot
我该如何做到这一点?