本文介绍了织梦dedecms想要增加点新字体怎么设置,dedecms不使用宋体等字体,用户可以自己添加其他字体,一起来看看实现方法吧。
织梦dedecms想要增加点新字体的实现方法:
第一步 打开include/ckeditor/ckeditor.js,
第二步 搜索font_names,找到字体列表,添加所需的中文字体。
添加后为:
i.font_names='宋体/宋体;黑体/黑体;仿宋/仿宋_GB2312;楷体/楷体_GB2312;隶书/隶书;幼圆/幼圆;微软雅黑/微软雅黑;Arial/Arial, Helvetica, sans-serif;Comic Sans MS/Comic Sans MS, cursive;Courier New/Courier New, Courier, monospace;Georgia/Georgia, serif;Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;Tahoma/Tahoma, Geneva, sans-serif;Times New Roman/Times New Roman, Times, serif;Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;Verdana/Verdana, Geneva, sans-serif';
第三步 因为缓存问题,可能添加后不会马上显示出来 ,建议清除一下系统缓存。
这样就可以了。