FCKEditor新增中文字型

2021-05-05 06:37:38 字數 723 閱讀 1169

fckeditor新增中文字型

預設情況下,fckeditor在進行文字編輯時,無法使用中文字型。

開啟 fckconfig.js 檔案

找到第154行(應該是),會發現:

程式**:

fckconfig.fontnames = 'arial;comic sans ms;courier new;tahoma;times new roman;verdana' ;

將其修改為:

fckconfig.fontnames = '宋體;黑體;幼圓;楷體_gb2312;仿宋_gb2312;arial;comic sans ms;courier new;tahoma;times new roman;verdana' ;

開啟editor/css/fck_editorarea.css 檔案

將程式**:

font-family: arial, verdana, sans-serif;

修改為:

font-family: 宋體, 黑體, 幼圓, 楷體, 仿宋, arial, verdana, sans-serif;

注意:一定要「另儲存」為 utf-8編碼格式的文件,否則會出現亂碼!

給FCKEDITOR新增中文字型

開啟 fckconfig.js 檔案 找到第154行 應該是 會發現 fckconfig.fontnames arial comic sans ms courier new tahoma times new roman verdana 將其修改為 fckconfig.fontnames 宋體 黑體 ...

matplotlb新增中文字型

在預設狀態下,matplotlb無法在圖表中使用中文。方法1 用某種中文字型替換掉matplotlib的預設字型 這屬於一種破壞性質的方法,不推薦。這樣的方法,同樣的 無法在不同的環境中使用,每次更換環境你必須得重新 hack 一次。方法2 使用matplotlib的字型管理器指定字型檔案 matp...

linux 新增中文字型

linux 安裝中文字型 1,檢視是否安裝中文字型 fc list lang zh 2,複製windows中文字庫案到linux usr share fonts目錄下 修改字尾為.ttf 使mkfontscale和mkfontdir命令正常執行 3,建立字型索引資訊,更新字型快取 若未安裝 yum ...