首先生成webfont:
http://www.fontsquirrel.com/tools/webfont-generator
你将下载包文件.你需要复制:
*.eot
*.woff
*.ttf
*.svg
到TinyMCE css文件夹的Skin
在Skin for TinyMCE中,有一个名为的文件:
skin.min.css
在这个css文件的顶部,您需要包含字体声明
@font-face {
font-family: 'arialregular';
src: url('arial-webfont.eot');
src: url('arial-webfont.eot?#iefix') format('embedded-opentype'),
url('arial-webfont.woff') format('woff'),
url('arial-webfont.ttf') format('truetype'),
url('arial-webfont.svg#arialregular') format('svg');
font-weight: normal;
font-style: normal;
}
你会在stylesheet.css中找到它,它是在font squirrel中生成的
然后找到
skin.min.css
字体系列声明并将其替换为font squirrel生成的字体名称,在我的示例中它将通过:
font-family: 'arialregular';
理论上它应该工作,希望它有所帮助!