JRE/lib/fontconfig. properties format description

Source: Internet
Author: User

This file is used to configure the Java intermediate font. It has three parts:

1. Define the ing between the font name and the font file. The format is filename. font name = font file. For example

Filename. Arial = Arial. TTF
Filename. arial_bold = arialbd. TTF
Filename. arial_italic = ariali. TTF
Filename. arial_bold_italic = arialbi. TTF

Filename. courier_new = cour. TTF
Filename. courier_new_bold = courbd. TTF
Filename. courier_new_italic = couri. TTF
Filename. courier_new_bold_italic = courbi. TTF

Filename. 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. TTF

Filename. simsun = simsun. TTC
Filename. SimSun-18030 = simsun18030.ttc

Note: If the font name contains an underline, you can use a space to replace the underline.

2. Define the ing between the intermediate font and the font name. The format is
Name of the intermediate font (also called the intermediate font family). The intermediate font style. sub_name (any name, which is considered as sub_name to be different from other names) = the font name. For example

Monospaced. Plain. alphabetic = Courier New
Monospaced. Plain. chinese-ms950 = mingliu
Monospaced. Plain. hebrew = David
Monospaced. Plain. japan ese = MS Gothic
Monospaced. Plain. Korean = gulimche

Monospaced. Bold. alphabetic = Courier New bold
Monospaced. Bold. chinese-ms950 = pmingliu
Monospaced. Bold. hebrew = David bold
Monospaced. Bold. japan ese = MS Gothic
Monospaced. Bold. Korean = gulimche

Monospaced. italic. alphabetic = Courier New Italic
Monospaced. italic. chinese-ms950 = pmingliu
Monospaced. italic. hebrew = David
Monospaced. italic. japan ese = MS Gothic
Monospaced. italic. Korean = gulimche

Monospaced. bolditalic. alphabetic = Courier New bold italic
Monospaced. bolditalic. chinese-ms950 = pmingliu
Monospaced. bolditalic. hebrew = David bold
Monospaced. bolditalic. Japanese = MS Gothic
Monospaced. bolditalic. Korean = gulimche

Note:
1) Global sub_name can be defined. The format is allfonts. sub_name = body name. For example

Allfonts. chinese-ms936 = simsun
Allfonts. chinese-gb18030 = SimSun-18030

The global sub_name is available for the intermediate font.
2) For each sub_name of the intermediate font, four copies of the four intermediate font styles must be defined. For example, alphabetic sub_name in the above example
Monospaced. Plain. alphabetic = Courier New
Monospaced. Bold. alphabetic = Courier New bold
Monospaced. italic. alphabetic = Courier New Italic
Monospaced. bolditalic. alphabetic = Courier New bold italic

3. Define the order in which the font is used to display the character set in the intermediate font.
Sequence. Intermediate character body name. Character Set = sub_name1, sub_name2 .... For example

Sequence. monospaced. GBK = chinese-ms936, alphabetic, dingbats, symbol

Note: The value range of sub_name here is the sub_name of the intermediate font name and the global sub_name.

When a character is displayed, if the intermediate font and style are specified, search for the sequence of "sequence. Intermediate font name. Current Character Set. Find the sequence and search for it based on the first sub_name.
Ing between the font and the font name of "Intermediate font. Intermediate font style. sub_name", and then displaying characters based on the actual font. If the actual font found based on the first sub_name cannot display characters, use the second
Sub_name, and so on.

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.