http://coffee13.blogspot.com/2008/06/netbeans-61.html
2008年6月2日 星期一
一. 准备工作:
1. 安装 dejavu 字体(ver 2.25)。
2. 安装 jdk 1.6,这版本的字体支持反锯齿。
3. 安装 netbeans 6.1ml,最新中文版。
二. 美化 netbeans 编辑器:
1. 把“如何调整Netbeans的字体”文章最后列出的配置内容复制存为 fontconfig.properties 文件;
fontconfig.properties :
(####################################################
# @(#)fontconfig.properties 1.5 04/01/28
#
# Copyright 2003 Sun Microsystems, Inc. All rights reserved.
## Version
version=1
# Component Font Mappings
allfonts.chinese-ms936=SimSun
allfonts.chinese-gb18030=SimSun-18030
allfonts.chinese-hkscs=MingLiU_HKSCS
allfonts.devanagari=Mangal
allfonts.dingbats=Wingdings
allfonts.lucida=Lucida Sans Regular
allfonts.symbol=Symbol
allfonts.thai=Lucida Sans Regularserif.plain.alphabetic=DejaVu Serif
serif.plain.chinese-ms950=MingLiU
serif.plain.hebrew=David
serif.plain.japanese=MS Mincho
serif.plain.korean=Batangserif.bold.alphabetic=DejaVu Serif Bold
serif.bold.chinese-ms950=PMingLiU
serif.bold.hebrew=David Bold
serif.bold.japanese=MS Mincho
serif.bold.korean=Batangserif.italic.alphabetic=DejaVu Serif Italic
serif.italic.chinese-ms950=PMingLiU
serif.italic.hebrew=David
serif.italic.japanese=MS Mincho
serif.italic.korean=Batangserif.bolditalic.alphabetic=DejaVu Serif Bold Italic
serif.bolditalic.chinese-ms950=PMingLiU
serif.bolditalic.hebrew=David Bold
serif.bolditalic.japanese=MS Mincho
serif.bolditalic.korean=Batangsansserif.plain.alphabetic=DejaVu Sans
sansserif.plain.chinese-ms950=MingLiU
sansserif.plain.hebrew=David
sansserif.plain.japanese=MS Gothic
sansserif.plain.korean=Gulimsansserif.bold.alphabetic=DejaVu Sans Bold
sansserif.bold.chinese-ms950=PMingLiU
sansserif.bold.hebrew=David Bold
sansserif.bold.japanese=MS Gothic
sansserif.bold.korean=Gulimsansserif.italic.alphabetic=DejaVu Sans Oblique
sansserif.italic.chinese-ms950=PMingLiU
sansserif.italic.hebrew=David
sansserif.italic.japanese=MS Gothic
sansserif.italic.korean=Gulimsansserif.bolditalic.alphabetic=DejaVu Sans Bold Oblique
sansserif.bolditalic.chinese-ms950=PMingLiU
sansserif.bolditalic.hebrew=David Bold
sansserif.bolditalic.japanese=MS Gothic
sansserif.bolditalic.korean=Gulimmonospaced.plain.alphabetic=DejaVu Sans Mono
monospaced.plain.chinese-ms950=MingLiU
monospaced.plain.hebrew=David
monospaced.plain.japanese=MS Gothic
monospaced.plain.korean=GulimChemonospaced.bold.alphabetic=DejaVu Sans Mono Bold
monospaced.bold.chinese-ms950=PMingLiU
monospaced.bold.hebrew=David Bold
monospaced.bold.japanese=MS Gothic
monospaced.bold.korean=GulimChemonospaced.italic.alphabetic=DejaVu Sans Mono Oblique
monospaced.italic.chinese-ms950=PMingLiU
monospaced.italic.hebrew=David
monospaced.italic.japanese=MS Gothic
monospaced.italic.korean=GulimChemonospaced.bolditalic.alphabetic=DejaVu Sans Mono Bold Oblique
monospaced.bolditalic.chinese-ms950=PMingLiU
monospaced.bolditalic.hebrew=David Bold
monospaced.bolditalic.japanese=MS Gothic
monospaced.bolditalic.korean=GulimChedialog.plain.alphabetic=DejaVu Sans
dialog.plain.chinese-ms950=MingLiU
dialog.plain.hebrew=David
dialog.plain.japanese=MS Gothic
dialog.plain.korean=Gulimdialog.bold.alphabetic=DejaVu Sans Bold
dialog.bold.chinese-ms950=PMingLiU
dialog.bold.hebrew=David Bold
dialog.bold.japanese=MS Gothic
dialog.bold.korean=Gulimdialog.italic.alphabetic=DejaVu Sans Oblique
dialog.italic.chinese-ms950=PMingLiU
dialog.italic.hebrew=David
dialog.italic.japanese=MS Gothic
dialog.italic.korean=Gulimdialog.bolditalic.alphabetic=DejaVu Sans Bold Oblique
dialog.bolditalic.chinese-ms950=PMingLiU
dialog.bolditalic.hebrew=David Bold
dialog.bolditalic.japanese=MS Gothic
dialog.bolditalic.korean=Gulimdialoginput.plain.alphabetic=DejaVu Sans Mono
dialoginput.plain.chinese-ms950=MingLiU
dialoginput.plain.hebrew=David
dialoginput.plain.japanese=MS Gothic
dialoginput.plain.korean=Gulimdialoginput.bold.alphabetic=DejaVu Sans Mono Bold
dialoginput.bold.chinese-ms950=PMingLiU
dialoginput.bold.hebrew=David Bold
dialoginput.bold.japanese=MS Gothic
dialoginput.bold.korean=Gulimdialoginput.italic.alphabetic=DejaVu Sans Mono Oblique
dialoginput.italic.chinese-ms950=PMingLiU
dialoginput.italic.hebrew=David
dialoginput.italic.japanese=MS Gothic
dialoginput.italic.korean=Gulimdialoginput.bolditalic.alphabetic=DejaVu Sans Mono Bold Oblique
dialoginput.bolditalic.chinese-ms950=PMingLiU
dialoginput.bolditalic.hebrew=David Bold
dialoginput.bolditalic.japanese=MS Gothic
dialoginput.bolditalic.korean=Gulim# 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=alphabetic,chinese-ms936,dingbats,symbol
sequence.dialog.GBK=alphabetic,chinese-ms936,dingbats,symbol
sequence.dialoginput.GBK=alphabetic,chinese-ms936,dingbats,symbolsequence.serif.GB18030=alphabetic,chinese-gb18030,dingbats,symbol
sequence.sansserif.GB18030=alphabetic,chinese-gb18030,dingbats,symbol
sequence.monospaced.GB18030=alphabetic,chinese-gb18030,dingbats,symbol
sequence.dialog.GB18030=alphabetic,chinese-gb18030,dingbats,symbol
sequence.dialoginput.GB18030=alphabetic,chinese-gb18030,dingbats,symbolsequence.serif.x-windows-950=alphabetic,chinese-ms950,dingbats,symbol
sequence.sansserif.x-windows-950=alphabetic,chinese-ms950,dingbats,symbol
sequence.monospaced.x-windows-950=alphabetic,chinese-ms950,dingbats,symbol
sequence.dialog.x-windows-950=alphabetic,chinese-ms950,dingbats,symbol
sequence.dialoginput.x-windows-950=alphabetic,chinese-ms950,dingbats,symbolsequence.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=alphabetic,chinese-ms950,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,symbolsequence.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=alphabetic,japanese,dingbats,symbol
sequence.dialog.windows-31j=alphabetic,japanese,dingbats,symbol
sequence.dialoginput.windows-31j=alphabetic,japanese,dingbats,symbolsequence.serif.x-windows-949=alphabetic,korean,dingbats,symbol
sequence.sansserif.x-windows-949=alphabetic,korean,dingbats,symbol
sequence.monospaced.x-windows-949=alphabetic,korean,dingbats,symbol
sequence.dialog.x-windows-949=alphabetic,korean,dingbats,symbol
sequence.dialoginput.x-windows-949=alphabetic,korean,dingbats,symbolsequence.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.Arial=ARIAL.TTF
filename.Arial_Bold=ARIALBD.TTF
filename.Arial_Italic=ARIALI.TTF
filename.Arial_Bold_Italic=ARIALBI.TTFfilename.Courier_New=COUR.TTF
filename.Courier_New_Bold=COURBD.TTF
filename.Courier_New_Italic=COURI.TTF
filename.Courier_New_Bold_Italic=COURBI.TTFfilename.Times_New_Roman=TIMES.TTF
filename.Times_New_Roman_Bold=TIMESBD.TTF
filename.Times_New_Roman_Italic=TIMESI.TTF
filename.Times_New_Roman_Bold_Italic=TIMESBI.TTFfilename.SimSun=SIMSUN.TTC
filename.SimSun-18030=SIMSUN18030.TTCfilename.MingLiU=MINGLIU.TTC
filename.PMingLiU=MINGLIU.TTC
filename.MingLiU_HKSCS=hkscsm3u.ttffilename.David=DAVID.TTF
filename.David_Bold=DAVIDBD.TTFfilename.MS_Mincho=MSMINCHO.TTC
filename.MS_PMincho=MSMINCHO.TTC
filename.MS_Gothic=MSGOTHIC.TTC
filename.MS_PGothic=MSGOTHIC.TTCfilename.Gulim=gulim.TTC
filename.Batang=batang.TTC
filename.GulimChe=gulim.TTCfilename.Lucida_Sans_Regular=LucidaSansRegular.ttf
filename.Mangal=MANGAL.TTF
filename.Symbol=SYMBOL.TTF
filename.Wingdings=WINGDING.TTFfilename.DejaVu_Sans=DejaVuSans.ttf
filename.DejaVu_Sans_Bold=DejaVuSans-Bold.ttf
filename.DejaVu_Sans_Bold_Oblique=DejaVuSans-BoldOblique.ttf
filename.DejaVu_Sans_Oblique=DejaVuSans-Oblique.ttf
filename.DejaVu_Serif=DejaVuSerif.ttf
filename.DejaVu_Serif_Bold=DejaVuSerif-Bold.ttf
filename.DejaVu_Serif_Bold_Italic=DejaVuSerif-BoldItalic.ttf
filename.DejaVu_Serif_Bold=DejaVuSerif-Bold.ttf
filename.DejaVu_Sans_Mono=DejaVuSansMono.ttf
filename.DejaVu_Sans_Mono_Bold=DejaVuSansMono-Bold.ttf
filename.DejaVu_Sans_Mono_Bold_Oblique=DejaVuSansMono-BoldOblique.ttf
filename.DejaVu_Sans_Mono_Oblique=DejaVuSansMono-Oblique.ttf)#####################################
2. 修改:"version"是"1";
3. 修改:"filename.DejaVu_"是 Dejavu 对应字体文件名:
filename.DejaVu_Sans=DejaVuSans.ttf
filename.DejaVu_Sans_Bold=DejaVuSans-Bold.ttf
filename.DejaVu_Sans_Bold_Oblique=DejaVuSans-BoldOblique.ttf
filename.DejaVu_Sans_Oblique=DejaVuSansCondensed-Oblique.ttf
filename.DejaVu_Serif=DejaVuSerif.ttf
filename.DejaVu_Serif_Bold=DejaVuSerif-Bold.ttf
filename.DejaVu_Serif_Bold_Italic=DejaVuSerif-BoldItalic.ttf
filename.DejaVu_Serif_Italic=DejaVuSerif-Italic.ttf
filename.DejaVu_Sans_Mono=DejaVuSansMono.ttf
filename.DejaVu_Sans_Mono_Bold=DejaVuSansMono-Bold.ttf
filename.DejaVu_Sans_Mono_Bold_Oblique=DejaVuSansMono-BoldOblique.ttf
filename.DejaVu_Sans_Mono_Oblique=DejaVuSansMono-Oblique.ttf
4. 复制 fontconfig.properties 到 jdk 1.6 安装目录下的 jre/lib,安装时没改路径时是 C:/Program Files/Java/jdk1.6.0_10/jre/lib。
下图是把字体调到14之后用Noway Today配置文件的截图:
三. 美化 netbeans 菜单:
1. 编辑 netbeans 安装目录下的 etc/netbeans.conf 文件,在"netbeans_default_options"加上" --fontsize 14"(注意开始有个空格),完整是"-J-client -J-Xss16m -J-Xms256m -J-Xmx512m -J-XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true --fontsize 14";
下图是修改后的截图:
注意:如果编辑器有一条竖着的红线,工具>选项>编辑器>编排>右边距=200,就没了。
标签:Bold,chinese,netbeans,DejaVu,字体,alphabetic,filename,美化,Sans From: https://blog.51cto.com/u_16065168/6445679