JBuilder cursor positioning perfect solution

xiaoxiao2021-03-06  117

In different locale, the JDK automatically calls the corresponding Properties file, and in the JDK, there is a problem with the Properties file corresponding to the Chinese system, and there is no difference in the English font, thick. Body and oblique, resulting in the above problems, the solution is simple, as long as this Properties file is modified correctly, the modification method is as follows: Find the font.properties.en file in the jre / lib directory, edit this Files and modifications to the following: # @ (#) font.properties.zh 1.19 01/07/09 ## AWT font default property for Chinese windows ## component font mappings # dialog.plain.0 = arial, ANSI_CharsetDialog.Plain. 1 = / u5b8b / u4f53, GB2312_CHARSETdialog.plain.2 = WingDings, SYMBOL_CHARSET, NEED_CONVERTEDdialog.plain.3 = Symbol, SYMBOL_CHARSET, NEED_CONVERTEDdialog.bold.0 = Arial Bold, ANSI_CHARSETdialog.bold.1 = / u5b8b / u4f53, GB2312_CHARSETdialog.bold .2 = WingDings, SYMBOL_CHARSET, NEED_CONVERTEDdialog.bold.3 = Symbol, SYMBOL_CHARSET, NEED_CONVERTEDdialog.italic.0 = Arial Italic, ANSI_CHARSETdialog.italic.1 = / u5b8b / u4f53, GB2312_CHARSETdialog.italic.2 = WingDings, SYMBOL_CHARSET, NEED_CONVERTEDdialog.italic .3 = SYMBOL, SYMBOL_CHARSET, NEED_CONVERTEDDIALOG.BOLDITALICCICICITALICCICITALIC, ANSI_CHARSETDIALOG.BOLDITALICICICICI_ / U5B8B / U4F53, GB2312_CharsetDialog.Bolditalic.2 = Wingdings, SY MBOL_CHARSET, NEED_CONVERTEDdialog.bolditalic.3 = Symbol, SYMBOL_CHARSET, NEED_CONVERTEDdialoginput.plain.0 = Courier New, ANSI_CHARSETdialoginput.plain.1 = / u5b8b / u4f53, GB2312_CHARSETdialoginput.plain.2 = WingDings, SYMBOL_CHARSET, NEED_CONVERTEDdialoginput.plain.3 = Symbol, SYMBOL_CHARSET, NEED_CONVERTEDdialoginput.bold.0 = Courier New Bold, ANSI_CHARSETdialoginput.bold.1 = / u5b8b / u4f53, GB2312_CHARSETdialoginput.bold.2 = WingDings, SYMBOL_CHARSET, NEED_CONVERTEDdialoginput.bold.3 = Symbol, SYMBOL_CHARSET, NEED_CONVERTEDdialoginput.italic.0 =

Courier New Italic, ANSI_CHARSETdialoginput.italic.1 = / u5b8b / u4f53, GB2312_CHARSETdialoginput.italic.2 = WingDings, SYMBOL_CHARSET, NEED_CONVERTEDdialoginput.italic.3 = Symbol, SYMBOL_CHARSET, NEED_CONVERTEDdialoginput.bolditalic.0 = Courier New Bold Italic, ANSI_CHARSETdialoginput.bolditalic. 1 = / u5b8b / u4f53, GB2312_CHARSETdialoginput.bolditalic.2 = WingDings, SYMBOL_CHARSET, NEED_CONVERTEDdialoginput.bolditalic.3 = Symbol, SYMBOL_CHARSET, NEED_CONVERTEDserif.plain.0 = Times New Roman, ANSI_CHARSETserif.plain.1 = / u5b8b / u4f53, GB2312_CHARSETserif. plain.2 = WingDings, SYMBOL_CHARSET, NEED_CONVERTEDserif.plain.3 = Symbol, SYMBOL_CHARSET, NEED_CONVERTEDserif.bold.0 = Times New Roman Bold, ANSI_CHARSETserif.bold.1 = / u5b8b / u4f53, GB2312_CHARSETserif.bold.2 = WingDings, SYMBOL_CHARSET, NEED_CONVERTEDserif.bold.3 = Symbol, SYMBOL_CHARSET, NEED_CONVERTEDserif.italic.0 = Times New Roman Italic, ANSI_CHARSETserif.italic.1 = / u5b8b / u4f53, GB2312_CHARSETserif.italic.2 = WingDings, SYMBOL_CHARSET, NEED_CONVERTEDserif.italic.3 = Symbol, Symbol_charset, NEED_CONVE RTEDserif.bolditalic.0 = Times New Roman Bold Italic, ANSI_CHARSETserif.bolditalic.1 = / u5b8b / u4f53, GB2312_CHARSETserif.bolditalic.2 = WingDings, SYMBOL_CHARSET, NEED_CONVERTEDserif.bolditalic.3 = Symbol, SYMBOL_CHARSET, NEED_CONVERTEDsansserif.plain.0 = Arial , ANSI_CHARSETsansserif.plain.1 = / u5b8b / u4f53, GB2312_CHARSETsansserif.plain.2 = WingDings, SYMBOL_CHARSET, NEED_CONVERTEDsansserif.plain.3 = Symbol, SYMBOL_CHARSET, NEED_CONVERTEDsansserif.bold.0 = Arial Bold, ANSI_CHARSETsansserif.bold.1 = / u5b8b / U4F53, GB2312_CHARSETSSSSERIF.BOLD.2 = WINGDINGS, SYMBOL_CHARSET, NEED_CONVERTEDsSansserif.bold.3 =

Symbol, SYMBOL_CHARSET, NEED_CONVERTEDsansserif.italic.0 = Arial Italic, ANSI_CHARSETsansserif.italic.1 = / u5b8b / u4f53, GB2312_CHARSETsansserif.italic.2 = WingDings, SYMBOL_CHARSET, NEED_CONVERTEDsansserif.italic.3 = Symbol, SYMBOL_CHARSET, NEED_CONVERTEDsansserif.bolditalic.0 = Arial Bold Italic, ANSI_CHARSETsansserif.bolditalic.1 = / u5b8b / u4f53, GB2312_CHARSETsansserif.bolditalic.2 = WingDings, SYMBOL_CHARSET, NEED_CONVERTEDsansserif.bolditalic.3 = Symbol, SYMBOL_CHARSET, NEED_CONVERTEDmonospaced.plain.0 = Courier New, GB2312_CHARSETmonospaced.plain.1 = /u5b8b/u4f53,GB2312_CHARSETmonospaced.plain.2=WingDings,SYMBOL_CHARSET,NEED_CONVERTEDmonospaced.plain.3=Symbol,SYMBOL_CHARSET,NEED_CONVERTEDmonospaced.bold.0=Courier New Bold, GB2312_CHARSETmonospaced.bold.1 = / u5b8b / u4f53, GB2312_CHARSETmonospaced.bold. 2 = WingDings, SYMBOL_CHARSET, NEED_CONVERTEDmonospaced.bold.3 = Symbol, SYMBOL_CHARSET, NEED_CONVERTEDmonospaced.italic.0 = Courier New Italic, GB2312_CHARSETmonospaced.italic.1 = / u5b8b / u4f53, GB2312_CHARSETmonospaced.italic.2 = WingDing s, SYMBOL_CHARSET, NEED_CONVERTEDmonospaced.italic.3 = Symbol, SYMBOL_CHARSET, NEED_CONVERTEDmonospaced.bolditalic.0 = Courier New Bold Italic, GB2312_CHARSETmonospaced.bolditalic.1 = / u5b8b / u4f53, GB2312_CHARSETmonospaced.bolditalic.2 = WingDings, SYMBOL_CHARSET, NEED_CONVERTEDmonospaced.bolditalic. 3 = Symbol, SYMBOL_CHARSET, NEED_CONVERTED # name aliases ## alias.timesroman = serif # alias.helvetica = sansserif # alias.courier = monospaced # for backward compatibility # timesroman.0 = Times New Roman, ANSI_CHARSET # helvetica.0 = Arial, ANSI_CHARSET # Courier.0 = Courier New, ANSI_CharsetzaPfdingBats.0 =

WingDings, SYMBOL_CHARSET # font filenames for reduced initialization time # filename. / U5b8b / u4f53 = SIMSUN.TTFfilename.Arial = ARIAL.TTFfilename.Arial_Bold = ARIALBD.TTFfilename.Arial_Italic = ARIALI.TTFfilename.Arial_Bold_Italic = ARIALBI.TTFfilename.Courier_New = COUR. TTFfilename.Courier_New_Bold = COURBD.TTFfilename.Courier_New_Italic = COURI.TTFfilename.Courier_New_Bold_Italic = COURBI.TTFfilename.Times_New_Roman = TIMES.TTFfilename.Times_New_Roman_Bold = TIMESBD.TTFfilename.Times_New_Roman_Italic = TIMESI.TTFfilename.Times_New_Roman_Bold_Italic = TIMESBI.TTFfilename.WingDings = WINGDING.TTFfilename. Symbol = SYMBOL.TTF # Default font definition # default.char = 2751 # Static FontCharset info. ## fontcharset.dialog.0 = sun.io.CharToByteCp1252fontcharset.dialog.1 = sun.io.CharToByteGBKfontcharset.dialog.2 = sun. awt.windows.CharToByteWingDingsfontcharset.dialog.3 sun.awt.CharToByteSymbol # fontcharset.dialoginput.0 = sun.io.CharToByteCp1252fontcharset.dialoginput.1 = sun.io.CharToByteGBKfontcharset.dialoginput.2 = sun.awt.windows.CharToBy = teWingDingsfontcharset.dialoginput.3 = sun.awt.CharToByteSymbol # fontcharset.serif.0 = sun.io.CharToByteCp1252fontcharset.serif.1 = sun.io.CharToByteGBKfontcharset.serif.2 = sun.awt.windows.CharToByteWingDingsfontcharset.serif.3 = sun.awt.CharToByteSymbol # fontcharset.sansserif.0 = sun.io.CharToByteCp1252fontcharset.sansserif.1 = sun.io.CharToByteGBKfontcharset.sansserif.2 = sun.awt.windows.CharToByteWingDingsfontcharset.sansserif.3 = sun.awt.CharToByteSymbol # Fontcharset.monospaced.0 = sun.io.chartobytecp1252fontcharset.monospaced.1 = sun.io.chartobytegbkfontcharset.monospaced.2 =

转载请注明原文地址:https://www.9cbs.com/read-102395.html

New Post(0)