JBuilder Chinese solution summary on the Internet

Source: Internet
Author: User
Tags i18n

-----------------------------
The following are the solutions to jbuilderx Chinese found on the Internet:
Solve Chinese problems
Set % System %/Documents ents and settings/you_user
Delete the/. primetimex and/. jbuilderx directories in the directory
Open the jbuilderx/bin/JBuilder. config file
# Tune this VM to provide enough headroom to work on large
# Applications
Vmparam-xms32m
Vmparam-xmx256m
Append a row
Vmparam-dprimetime. Editor. usevariablewidthfont = true
Try to start JBuilder x again, which is generally normal. In this case, the "font family" option of "edit"-"display" in "Tools"-"perferences" is "dialoginput ".

--------------------------------------------

It should be: Editor. display; fixed_fonts.3 = font name
In this way, JBX will be automatically deleted. You can add quotation marks and save them, and then remove the quotation marks.
After you set the font name to dialoginput, the cute font is displayed, which is the same as that in jb9.
-------------------------------------------

I read the previous post, especially the method for removing the bold option. It is unacceptable to solve the cursor dislocation problem. I think it is necessary to clarify the cause of the problem:

The cursor issue in JBuilder is not a Borland issue, but it should be the trouble left by Sun. As you know, the i18n problem is mainly caused by the operating system
(The control panel in window2000 or XP is distinguished by "region and language options"). In this way, developers can use Attribute files of the corresponding region and language to enable the software package to support internationalization. Specifically, JBuilder uses JRE's font. properties. ZH to support Chinese fonts.

The problem lies in the font. properties. ZH provided by Sun. Sun uses normal fonts in this file. We know that in the editor, the width occupied by normal body and bold or italic is different. Therefore, the normal usage of bold and plain causes the editor to calculate the width of the bold characters incorrectly. Now, we understand the cause of the problem. What's interesting is that sun correctly distinguishes the English font attribute files. (It seems like it was intentional ?!) By comparing the font. properties and font. properties. ZH files, you can intuitively understand the problem.
======= Correct font setting ====
# Component font Mappings
#
Dialog. plain.0 = Arial, ansi_charset
Dialog. bold.0 = Arial bold, ansi_charset
Dialog. italic.0 = Arial italic, ansi_charset

Above, plain should use the font XXX, bold should use XXX bold, italic should use XXX italic.

After understanding the root cause of the problem, it is very easy to find a solution to the problem.

Replace the corresponding component font mappings section in font. properties. ZH with the following section.

# Component font Mappings
#
Dialog. plain.0 = Arial, ansi_charset
Dialog. plain.1 =/u5b8b/u4f53, gb2312_charset
Dialog. plain.2 = wingdings, symbol_charset, need_converted
Dialog. plain.3 = symbol, symbol_charset, need_converted

Dialog. bold.0 = Arial bold, ansi_charset
Dialog. bold.1 =/u5b8b/u4f53, gb2312_charset
Dialog. bold.2 = wingdings, symbol_charset, need_converted
Dialog. bold.3 = symbol, symbol_charset, need_converted

Dialog. italic.0 = Arial italic, ansi_charset
Dialog. italic.1 =/u5b8b/u4f53, gb2312_charset
Dialog. italic.2 = wingdings, symbol_charset, need_converted
Dialog. italic.3 = symbol, symbol_charset, need_converted

Dialog. bolditalic.0 = Arial bold italic, ansi_charset
Dialog. bolditalic.1 =/u5b8b/u4f53, gb2312_charset
Dialog. bolditalic.2 = wingdings, symbol_charset, need_converted
Dialog. bolditalic.3 = symbol, symbol_charset, need_converted

Dialoginput. plain.0 = Courier New, ansi_charset
Dialoginput. plain.1 =/u5b8b/u4f53, gb2312_charset
Dialoginput. plain.2 = wingdings, symbol_charset, need_converted
Dialoginput. plain.3 = symbol, symbol_charset, need_converted

Dialoginput. bold.0 = Courier New bold, ansi_charset
Dialoginput. bold.1 =/u5b8b/u4f53, gb2312_charset
Dialoginput. bold.2 = wingdings, symbol_charset, need_converted
Dialoginput. bold.3 = symbol, symbol_charset, need_converted

Dialoginput. italic.0 = Courier New italic, ansi_charset
Dialoginput. italic.1 =/u5b8b/u4f53, gb2312_charset
Dialoginput. italic.2 = wingdings, symbol_charset, need_converted
Dialoginput. italic.3 = symbol, symbol_charset, need_converted

Dialoginput. bolditalic.0 = Courier New bold italic, ansi_charset
Dialoginput. bolditalic.1 =/u5b8b/u4f53, gb2312_charset
Dialoginput. bolditalic.2 = wingdings, symbol_charset, need_converted
Dialoginput. bolditalic.3 = symbol, symbol_charset, need_converted

Serif. plain.0 = Times New Roman, ansi_charset
Serif. plain.1 =/u5b8b/u4f53, gb2312_charset
Serif. plain.2 = wingdings, symbol_charset, need_converted
Serif. plain.3 = symbol, symbol_charset, need_converted

Serif. bold.0 = Times New Roman bold, ansi_charset
Serif. bold.1 =/u5b8b/u4f53, gb2312_charset
Serif. bold.2 = wingdings, symbol_charset, need_converted
Serif. bold.3 = symbol, symbol_charset, need_converted

Serif. italic.0 = Times New Roman italic, ansi_charset
Serif. italic.1 =/u5b8b/u4f53, gb2312_charset
Serif. italic.2 = wingdings, symbol_charset, need_converted
Serif. italic.3 = symbol, symbol_charset, need_converted

Serif. bolditalic.0 = Times New Roman bold italic, ansi_charset
Serif. bolditalic.1 =/u5b8b/u4f53, gb2312_charset
Serif. bolditalic.2 = wingdings, symbol_charset, need_converted
Serif. bolditalic.3 = symbol, symbol_charset, need_converted

Sansserif. plain.0 = Arial, ansi_charset
Sansserif. plain.1 =/u5b8b/u4f53, gb2312_charset
Sansserif. plain.2 = wingdings, symbol_charset, need_converted
Sansserif. plain.3 = symbol, symbol_charset, need_converted

Sansserif. bold.0 = Arial bold, ansi_charset
Sansserif. bold.1 =/u5b8b/u4f53, gb2312_charset
Sansserif. bold.2 = wingdings, symbol_charset, need_converted
Sansserif. bold.3 = symbol, symbol_charset, need_converted

Sansserif. italic.0 = Arial italic, ansi_charset
Sansserif. italic.1 =/u5b8b/u4f53, gb2312_charset
Sansserif. italic.2 = wingdings, symbol_charset, need_converted
Sansserif. italic.3 = symbol, symbol_charset, need_converted

Sansserif. bolditalic.0 = Arial bold italic, ansi_charset
Sansserif. bolditalic.1 =/u5b8b/u4f53, gb2312_charset
Sansserif. bolditalic.2 = wingdings, symbol_charset, need_converted
Sansserif. bolditalic.3 = symbol, symbol_charset, need_converted

Monospaced. plain.0 = Courier New, gb2312_charset
Monospaced. plain.1 =/u5b8b/u4f53, gb2312_charset
Monospaced. plain.2 = wingdings, symbol_charset, need_converted
Monospaced. plain.3 = symbol, symbol_charset, need_converted

Monospaced. bold.0 = Courier New bold, gb2312_charset
Monospaced. bold.1 =/u5b8b/u4f53, gb2312_charset
Monospaced. bold.2 = wingdings, symbol_charset, need_converted
Monospaced. bold.3 = symbol, symbol_charset, need_converted

Monospaced. italic.0 = Courier New italic, gb2312_charset
Monospaced. italic.1 =/u5b8b/u4f53, gb2312_charset
Monospaced. italic.2 = wingdings, symbol_charset, need_converted
Monospaced. italic.3 = symbol, symbol_charset, need_converted

Monospaced. bolditalic.0 = Courier New bold italic, gb2312_charset
Monospaced. bolditalic.1 =/u5b8b/u4f53, gb2312_charset
Monospaced. bolditalic.2 = wingdings, symbol_charset, need_converted
Monospaced. bolditalic.3 = symbol, symbol_charset, need_converted

==== End ====
Restart JBuilder! Finally, we hope you can make the same changes to the local JDK of your machine and the font. properties. ZH In the JDK that comes with JBuilder. The font. properties. ZH file is in the {jdk_home}/JRE/lib directory.

--------------------------------------------------------------------------------
15. Re: the true root cause and solution of the cursor problem [re: swordsman] Copy to clipboard
Posted by: guru
Posted on:

Swordsman wrote:
I read the previous post, especially the method for removing the bold option. It is unacceptable to solve the cursor dislocation problem. I think it is necessary to clarify the cause of the problem:

The cursor issue in JBuilder is not a Borland issue, but it should be the trouble left by Sun. As you know, the i18n problem is mainly caused by the operating system
(The control panel in window2000 or XP is distinguished by "region and language options"). In this way, developers can use Attribute files of the corresponding region and language to enable the software package to support internationalization. Specifically, JBuilder uses JRE's font. properties. ZH to support Chinese fonts.

 

Yes, this is the correct answer. This setting not only solves the problem of Chinese and cursor in JBuilder, but also solves the problem of Chinese character width in any other graphic interface program, such as intellij idea.

In addition, Sun has fixed this issue in jdk1.5, and I believe there will be no more annoying character width issues.

Finally, you may need to modify the font in the system that is installed with the gb18030 support (it seems like this already exists in Microsoft's new Windows XP copy. properties. zh_cn_gb18030 file, which is supported by other languages.

---------------------------------------------------
1. How to Solve jbuilderx Chinese display and cursor problems copy to clipboard
Posted by: Hawker
Posted on:

Sender: jiandy, email area: Java
Question: How to Make jbuilderx display Chinese Characters
Mailing site: BBS shuimu Tsinghua station (Wed Nov 26 13:42:26 2003)

Find
% System_driver %/Documents and Settings/Administrator/. primetimex
User_zh.properties File
Find
...
Editor. display; fixed_fonts.1 = Courier New
Editor. display; fixed_fonts.2 = lucida sans typewriter
...
It's about 240 rows.
Manually add
Editor. display; fixed_fonts.3 = "font name"
Note:
The font name must be below
Font names listed in editor. display; known_fonts

And so on. You can add many fonts,
Add "dialoginput" and "monospaced" to display Chinese characters.

//////////////////////////////////////// /////////////////////

Sender: NSD (Bug), email area: Java
Title: Re: Solve the JBuilder cursor problem (posting)
Mailing site: BBS shuimu Tsinghua station (Sun Nov 16 16:47:31 2003)

Modify bin/JBuilder. config in the jbuilderx installation directory

# Specify location of visual sourcesafe and database
Vmparam-dvsslocation = "E:/program files/Microsoft Visual Studio/VSS/Win32"
Vmparam-dvsscurrentdbase = "// Rogers/worksheelt"
Add this line below:
Vmparam-dprimetime. Editor. usevariablewidthfont = true

Change
# Specify location of visual sourcesafe and database
Vmparam-dvsslocation = "E:/program files/Microsoft Visual Studio/VSS/Win32"
Vmparam-dvsscurrentdbase = "// Rogers/worksheelt"
Vmparam-dprimetime. Editor. usevariablewidthfont = true

You can.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.