Netbeans的中文设置问题

默认的Netbeans中文字体显示总有问题, 我按照http://www.iteye.com/topic/55085?page=3 这个帖子改了下我的fontconfig.properties文件, 但是在Netbeans中选择monospaced后, 中文字体正确了, 英文字体不对了, 用的不是我指定的Consolas.

配置文件如下:
[code="java"]

@(#)fontconfig.properties 1.5 04/01/28

#

Copyright 2003 Sun Microsystems, Inc. All rights reserved.

#

Version

version=1

Component Font Mappings

allfonts.plain.alphabetic=Consolas
allfonts.chinese-ms936=SimSun
allfonts.chinese-gb18030=SimSun-18030
allfonts.chinese-hkscs=SimSun
#allfonts.chinese-ms936=SurSong
#allfonts.chinese-gb18030=SurSong
#allfonts.chinese-hkscs=MingLiU_HKSCS

serif.plain.alphabetic=Consolas
serif.plain.chinese-ms950=SimSun

serif.bold.alphabetic=Consolas Bold
serif.bold.chinese-ms950=SimSun

serif.italic.alphabetic=Consolas Italic
serif.italic.chinese-ms950=SimSun

serif.bolditalic.alphabetic=Consolas Bold Italic
serif.bolditalic.chinese-ms950=SimSun

sansserif.plain.alphabetic=Consolas
sansserif.plain.chinese-ms950=SimSun

sansserif.bold.alphabetic=Consolas Bold
sansserif.bold.chinese-ms950=SimSun

sansserif.italic.alphabetic=Consolas

sansserif.bolditalic.alphabetic=Consolas Bold Italic
sansserif.bolditalic.chinese-ms950=SimSun

monospaced.plain.alphabetic=Consolas
monospaced.plain.chinese-ms950=SimSun

monospaced.bold.alphabetic=Consolas Bold
monospaced.bold.chinese-ms950=SimSun

monospaced.italic.alphabetic=Consolas Italic
monospaced.italic.chinese-ms950=SimSun

monospaced.bolditalic.alphabetic=Consolas Bold Italic
monospaced.bolditalic.chinese-ms950=SimSun

dialog.plain.alphabetic=Consolas
dialog.plain.chinese-ms950=SimSun

dialog.bold.alphabetic=Consolas Bold
dialog.bold.chinese-ms950=SimSun

dialog.italic.alphabetic=Consolas Italic
dialog.italic.chinese-ms950=SimSun

dialog.bolditalic.alphabetic=Consolas Bold Italic
dialog.bolditalic.chinese-ms950=SimSun

dialoginput.plain.alphabetic=Consolas
dialoginput.plain.chinese-ms950=SimSun

dialoginput.bold.alphabetic=Consolas Bold
dialoginput.bold.chinese-ms950=SimSun

dialoginput.italic.alphabetic=Consolas Italic
dialoginput.italic.chinese-ms950=SimSun

dialoginput.bolditalic.alphabetic=Consolas Bold Italic
dialoginput.bolditalic.chinese-ms950=SimSun

Search Sequences

sequence.allfonts=alphabetic/default,dingbats,symbol

sequence.serif.GBK=alphabetic,chinese-ms936,dingbats,symbol
sequence.sansserif.GBK=alphabetic,chinese-ms936,dingbats,symbol
sequence.monospaced.GBK=chinese-ms936,alphabetic,dingbats,symbol
sequence.dialog.GBK=alphabetic,chinese-ms936,dingbats,symbol
sequence.dialoginput.GBK=alphabetic,chinese-ms936,dingbats,symbol

sequence.serif.GB18030=alphabetic,chinese-gb18030,dingbats,symbol
sequence.sansserif.GB18030=alphabetic,chinese-gb18030,dingbats,symbol
sequence.monospaced.GB18030=chinese-gb18030,alphabetic,dingbats,symbol
sequence.dialog.GB18030=alphabetic,chinese-gb18030,dingbats,symbol
sequence.dialoginput.GB18030=alphabetic,chinese-gb18030,dingbats,symbol

sequence.serif.x-windows-950=alphabetic,chinese-ms950,dingbats,symbol
sequence.sansserif.x-windows-950=alphabetic,chinese-ms950,dingbats,symbol
sequence.monospaced.x-windows-950=chinese-ms950,alphabetic,dingbats,symbol
sequence.dialog.x-windows-950=alphabetic,chinese-ms950,dingbats,symbol
sequence.dialoginput.x-windows-950=alphabetic,chinese-ms950,dingbats,symbol

sequence.serif.x-MS950-HKSCS=alphabetic,chinese-ms950,chinese-hkscs,dingbats,symbol
sequence.sansserif.x-MS950-HKSCS=alphabetic,chinese-ms950,chinese-hkscs,dingbats,symbol
sequence.monospaced.x-MS950-HKSCS=chinese-ms950,alphabetic,chinese-hkscs,dingbats,symbol
sequence.dialog.x-MS950-HKSCS=alphabetic,chinese-ms950,chinese-hkscs,dingbats,symbol
sequence.dialoginput.x-MS950-HKSCS=alphabetic,chinese-ms950,chinese-hkscs,dingbats,symbol

sequence.allfonts.UTF-8.hi=alphabetic/1252,devanagari,dingbats,symbol

sequence.allfonts.windows-1255=hebrew,alphabetic/1252,dingbats,symbol

sequence.serif.windows-31j=alphabetic,japanese,dingbats,symbol
sequence.sansserif.windows-31j=alphabetic,japanese,dingbats,symbol
sequence.monospaced.windows-31j=japanese,alphabetic,dingbats,symbol
sequence.dialog.windows-31j=alphabetic,japanese,dingbats,symbol
sequence.dialoginput.windows-31j=alphabetic,japanese,dingbats,symbol

sequence.serif.x-windows-949=alphabetic,korean,dingbats,symbol
sequence.sansserif.x-windows-949=alphabetic,korean,dingbats,symbol
sequence.monospaced.x-windows-949=korean,alphabetic,dingbats,symbol
sequence.dialog.x-windows-949=alphabetic,korean,dingbats,symbol
sequence.dialoginput.x-windows-949=alphabetic,korean,dingbats,symbol

sequence.allfonts.x-windows-874=alphabetic,thai,dingbats,symbol

sequence.fallback=lucida,\
chinese-ms950,chinese-hkscs,chinese-ms936,chinese-gb18030,\
japanese,korean

Exclusion Ranges

exclusion.alphabetic=0700-1e9f,1f00-20ab,20ad-f8ff
exclusion.chinese-gb18030=0390-03d6,2200-22ef,2701-27be
exclusion.hebrew=0041-005a,0060-007a,007f-00ff,20ac-20ac

Monospaced to Proportional width variant mapping

(Experimental private syntax)

proportional.MS_Gothic=MS PGothic
proportional.MS_Mincho=MS PMincho
proportional.MingLiU=PMingLiU

Font File Names

filename.Consolas=consola.ttf
filename.Consolas_Bold=consola.ttf
filename.Consolas_Italic=consola.ttf
filename.Consolas_Bold_Italic=consola.ttf

filename.SimSun=msyh.ttf
filename.SimSun-18030=msyh.ttf
[/code]

我的目的是, 英文字体使用Consolas, 中文字体使用微软雅黑, 希望大家帮帮我, 看看怎么设置才正确啊

1个回答

sequence.monospaced.GBK=chinese-ms936,alphabetic,dingbats,symbol
--》
sequence.monospaced.GBK=alphabetic,chinese-ms936,dingbats,symbol
如果不是GBK而是UTF-8
那就增加一句
个人建议不要使用这个英文字体,它比较小,如果字号大,那雅黑就会比较大

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问