jeecg富⽂本编辑器增加字体(仿宋)(⽼版本)j e e c g富⽂本编辑器增加字体(仿宋)
温馨提⽰:j e e c g提供了u e d it富⽂本的实现,如下针对的是u e d it增加仿宋字体⽰例。
主要修改三个⽂件:p l ug-i n\ue d i t or\ue d i t or.c onfi g.j s、p l ug-i n\ue d i t or\l a ng\e n\e n.j s、p l ug-
i n\ue d i t or\l a ng\z h-c n\z h-c n.j s
在该⽂件中到:font fa m i l y 节点,取消该节点的全部注释。
,'fontfamily':[
{ label:'',name:'songti',val:'宋体,SimSun'},
{ label:'',name:'fangsong',val:'仿宋,FangSong'},
{ label:'',name:'kaiti',val:'楷体,楷体_GB2312, SimKai'},
{ label:'',name:'yahei',val:'微软雅⿊,Microsoft YaHei'},
{ label:'',name:'heiti',val:'⿊体, SimHei'},
{ label:'',name:'lishu',val:'⾪书, SimLi'},
{ label:'',name:'andaleMono',val:'andale mono'},
{ label:'',name:'arial',val:'arial, helvetica,sans-serif'},
{ label:'',name:'arialBlack',val:'arial black,avant garde'},
{ label:'',name:'comicSansMs',val:'comic sans ms'},
{ label:'',name:'impact',val:'impact,chicago'},
{ label:'',name:'timesNewRoman',val:'times new roman'}
]
同样到font fa m i l y 节点,增加'fa ng s ong':'仿宋'
'fontfamily':{
'songti':'宋体',
'fangsong':'仿宋',
'kaiti':'楷体',
'heiti':'⿊体',
'lishu':'⾪书',
'yahei':'微软雅⿊',
'andaleMono':'andale mono',
'arial': 'arial',
'arialBlack':'arial black',
'comicSansMs':'comic sans ms',
'impact':'impact',
'timesNewRoman':'times new roman'
},
还是font fa m i l y 节点,增加'fa ng s ong':'F a ng S ong'
'fontfamily':{
'songti':'Sim sun',
'fangsong':'FangSong',
'kaiti':'Sim kai',
'heiti':'Sim hei',
'lishu':'Sim li',
'yahei': 'Microsoft yahei',
'andaleMono':'Andale mono',
'arial': 'Arial',
'arialBlack':'Arial black',
'comicSansMs':'Comic sans ms',
'impact':'Impact',
'timesNewRoman':'Times new roman'
},
实现效果
最后
附上部分中⽂字体的英⽂名,⽅便添加字体
华⽂细⿊:S T H e i t i L i g ht[S T X i he i]
华⽂⿊体:S T H e i t i
华⽂楷体:S T K a i t i
华⽂宋体:S T S ong
华⽂仿宋:S T F a ng s ong
俪⿊P r o:L i H e i P r o M e d i um
俪宋P r o:L i S ong P r o L i g ht
标楷体:B i a uK a i
苹果俪中⿊:Ap p l e L i Got hi c M e d i um 苹果俪细宋:Ap p l e L i S ung L i g ht
新细明体:P M i ng L i U
细明体:M i ng L i U
标楷体:DF K a i-S B
⿊体:S i m H e i
宋体:S i m S un
新宋体:N S i m S un
仿宋:F a ng S ong
楷体:K a i T i
仿宋_GB2312:F a ng S ong_GB2312楷体_GB2312:K a i T i_GB2312
微软正⿊体:M i c r os oft J he ng H e i
微软雅⿊体:M i c r os oft Ya H e i
⾪书:L i S u
幼圆:YouYua n
华⽂细⿊:S T X i he i
华⽂楷体:S T K a i t i
asp富文本编辑器华⽂宋体:S T S ong
华⽂中宋:S T Z hong s ong
华⽂仿宋:S T F a ng s ong
⽅正舒体:F Z S huT i
⽅正姚体:F Z Ya ot i
华⽂彩云:S T Ca i yun
华⽂琥珀:S T H up o 华⽂⾪书:S T L i t i
华⽂⾏楷:S T X i ng k a i 华⽂新魏:S T X i nw e i
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论