Let j2re display Chinese characters normally. It is suitable for various Linux systems and can be viewed by friends.

Source: Internet
Author: User
This is the font I wrote for rh8. properties, rh8, simsun, And put simusn in/usr/x11r6/lib/X11/fonts/TrueType. You can copy the code to the text editor and save it as font. properties. zh. copy RedHat directly to the Lib in the j2re installation directory and restart it to take effect. (For other Linux users and rh8 users to set up different friends for modification, I will comment the Modification Principle in the code, ask friends who have different settings to modify it, and put the font. properties is the following code saved in the text editor as font. properties. zh or font. properties. copy zh_cn to the Lib in the j2re installation directory to take effect)

Code:
# @ (#) Font. properties. Zh. RedHat. Linux 1.4 02/10/13
#
# Copyright 2002 Sun Microsystems, Inc. All rights reserved.
#
# Creation by penpen
#
# Any
#-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0
# This is where you can modify the font. simsun is used here.
# You can use the replacement function of the text editor to replace all the font settings at one time. Pay attention to the preserve format.
# Do not modify the font format "-- *-% d-*-C.
#

# Component font Mappings
#
Serif.0 =-B & H-lucidabright-Medium-r-normal -- *-% d-*-p-*-iso8859-1
Serif.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Serif. italic.0 =-B & H-lucidabright-Medium-I-normal -- *-% d-*-p-*-iso8859-1
Serif. italic.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Serif. bold.0 =-B & H-lucidabright-demibold-r-normal -- *-% d-*-p-*-iso8859-1
Serif. bold.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Serif. bolditalic.0 =-B & H-lucidabright-demibold-I-normal -- *-% d-*-p-*-iso8859-1
Serif. bolditalic.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Sansserif.0 =-B & H-lucidasans-Medium-r-normal-sans-*-% d-*-p-*-iso8859-1
Sansserif.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Sansserif. italic.0 =-B & H-lucidasans-Medium-I-normal-sans-*-% d-*-p-*-iso8859-1
Sansserif. italic.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Sansserif. bold.0 =-B & H-lucidasans-bold-r-normal-sans-*-% d-*-p-*-iso8859-1
Sansserif. bold.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Sansserif. bolditalic.0 =-B & H-lucidasans-bold-I-normal-sans-*-% d-*-p-*-iso8859-1
Sansserif. bolditalic.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Monospaced.0 =-B & H-lucidatypewriter-Medium-r-normal-sans-*-% d-*-m-*-iso8859-1
Monospaced.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Monospaced. italic.0 =-B & H-lucidatypewriter-Medium-r-normal-sans-*-% d-*-m-*-iso8859-1
Monospaced. italic.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Monospaced. bold.0 =-B & H-lucidatypewriter-bold-r-normal-sans-*-% d-*-m-*-iso8859-1
Monospaced. bold.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Monospaced. bolditalic.0 =-B & H-lucidatypewriter-bold-r-normal-sans-*-% d-*-m-*-iso8859-1
Monospaced. bolditalic.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Dialog.0 =-B & H-lucidasans-Medium-r-normal-sans-*-% d-*-p-*-iso8859-1
Dialog.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Dialog. italic.0 =-B & H-lucidasans-Medium-I-normal-sans-*-% d-*-p-*-iso8859-1
Dialog. italic.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Dialog. bold.0 =-B & H-lucidasans-bold-r-normal-sans-*-% d-*-p-*-iso8859-1
Dialog. bold.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Dialog. bolditalic.0 =-B & H-lucidasans-bold-I-normal-sans-*-% d-*-p-*-iso8859-1
Dialog. bolditalic.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Dialoginput.0 =-B & H-lucidatypewriter-Medium-r-normal-sans-*-% d-*-m-*-iso8859-1
Dialoginput.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Dialoginput. italic.0 =-B & H-lucidatypewriter-Medium-r-normal-sans-*-% d-*-m-*-iso8859-1
Dialoginput. italic.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Dialoginput. bold.0 =-B & H-lucidatypewriter-bold-r-normal-sans-*-% d-*-m-*-iso8859-1
Dialoginput. bold.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Dialoginput. bolditalic.0 =-B & H-lucidatypewriter-bold-r-normal-sans-*-% d-*-m-*-iso8859-1
Dialoginput. bolditalic.1 =-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

# Missing glyph character
#
Default. Char = 274f

# Component font character encodings
#
Fontcharset. serif.0 = sun. Io. chartobyteiso8859_1
Fontcharset. serif.1 = sun. AWT. motif. chartobytex11gbk

Fontcharset. sansserif.0 = sun. Io. chartobyteiso8859_1
Fontcharset. sansserif.1 = sun. AWT. motif. chartobytex11gbk

Fontcharset. monospaced.0 = sun. Io. chartobyteiso8859_1
Fontcharset. monospaced.1 = sun. AWT. motif. chartobytex11gbk

Fontcharset. dialog.0 = sun. Io. chartobyteiso8859_1
Fontcharset. dialog.1 = sun. AWT. motif. chartobytex11gbk

Fontcharset. dialoginput.0 = sun. Io. chartobyteiso8859_1
Fontcharset. dialoginput.1 = sun. AWT. motif. chartobytex11gbk

# Exclusion ranges
#

# Xfontset Information
#
Fontset. serif. Plain =
-B & H-lucidabright-Medium-r-normal -- *-% d-*-p-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. serif. italic =
-B & H-lucidabright-Medium-I-normal -- *-% d-*-p-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. serif. Bold =
-B & H-lucidabright-demibold-r-normal -- *-% d-*-p-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. serif. bolditalic =
-B & H-lucidabright-demibold-I-normal -- *-% d-*-p-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. sansserif. Plain =
-B & H-lucida-Medium-r-normal-sans-*-% d-*-p-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. sansserif. italic =
-B & H-lucida-Medium-I-normal-sans-*-% d-*-p-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. sansserif. Bold =
-B & H-lucida-bold-r-normal-sans-*-% d-*-p-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. sansserif. bolditalic =
-B & H-lucida-bold-I-normal-snas-*-% d-*-p-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. monospaced. Plain =
-B & H-lucidatypewriter-Medium-r-normal-sans-*-% d-*-m-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. monospaced. italic =
-B & H-lucidatypewriter-Medium-r-normal-sans-*-% d-*-m-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. monospaced. Bold =
-B & H-lucidatypewriter-bold-r-normal-sans-*-% d-*-m-*-iso8859-, 1
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. monospaced. bolditalic =
-B & H-lucidatypewriter-bold-r-normal-sans-*-% d-*-m-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. Dialog. italic =
-B & H-lucida-Medium-I-normal-sans-*-% d-*-p-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. Dialog. Bold =
-B & H-lucida-bold-r-normal-sans-*-% d-*-p-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. Dialog. bolditalic =
-B & H-lucida-bold-I-normal-sans-*-% d-*-p-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. Dialog. Plain =
-B & H-lucida-Medium-r-normal-sans-*-% d-*-p-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. dialoginput. italic =
-B & H-lucidatypewriter-Medium-r-normal-sans-*-% d-*-m-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. dialoginput. Bold =
-B & H-lucidatypewriter-bold-r-normal-sans-*-% d-*-m-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. dialoginput. bolditalic =
-B & H-lucidatypewriter-bold-r-normal-sans-*-% d-*-m-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. dialoginput. Plain =
-B & H-lucidatypewriter-Medium-r-normal-sans-*-% d-*-m-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Fontset. Default =
-B & H-lucida-Medium-r-normal-sans-*-% d-*-p-*-iso8859-1,
-MISC-simsun-Medium-r-normal -- *-% d-*-C-*-gb2312.1980-0

Appendedfontpath =/usr/x11r6/lib/X11/fonts/TrueType
# "/Usr/x11r6/lib/X11/fonts/TrueType" where your font is located

I hope Java can be used happily. "

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.