fontconfig/conf.d
Akira TAGOH f555f50a20 Add 35-lang-normalize.conf
This avoids a situation where the score of lang becomes lower or equal to others
and then figures out the best font according to other properties and the order
of family names.

This typically happens only when our orthography files are the subset of lang
in patterns. i.e. fc-match :lang=en-us to match on en.orth.
In this case, the score is lower than the exact match (en to en) and the partial
match (en to en-us). thus, the result of 'fc-match :lang=en-us' isn't necessarily
same to 'fc-match :lang=en'.

So 35-lang-normalize.conf contains languages only which is available as orth
without countries and tries to update properties to match on orth exactly like:

  <match>
    <test name="lang" compare="contains">
      <string>en</string>
    </test>
    <edit name="lang" mode="assign" binding="same">
      <string>en</string>
    </edit>
  </match>

Fixes https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/155
2019-07-26 07:42:36 +00:00
..
05-reset-dirs-sample.conf Add reset-dirs element 2019-04-03 12:02:09 +00:00
10-autohint.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
10-hinting-full.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
10-hinting-medium.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
10-hinting-none.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
10-hinting-slight.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
10-no-sub-pixel.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
10-scale-bitmap-fonts.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
10-sub-pixel-bgr.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
10-sub-pixel-rgb.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
10-sub-pixel-vbgr.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
10-sub-pixel-vrgb.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
10-unhinted.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
11-lcdfilter-default.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
11-lcdfilter-legacy.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
11-lcdfilter-light.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
20-unhint-small-vera.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
25-unhint-nonlatin.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
30-metric-aliases.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
40-nonlatin.conf Add system-ui generic family 2019-02-27 16:38:12 +09:00
45-generic.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
45-latin.conf Add system-ui generic family 2019-02-27 16:38:12 +09:00
49-sansserif.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
50-user.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
51-local.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
60-generic.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
60-latin.conf Add system-ui generic family 2019-02-27 16:38:12 +09:00
65-fonts-persian.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
65-khmer.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
65-nonlatin.conf Add system-ui generic family 2019-02-27 16:38:12 +09:00
69-unifont.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
70-no-bitmaps.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
70-yes-bitmaps.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
80-delicious.conf Add the ruleset description support 2017-11-07 15:24:54 +09:00
90-synthetic.conf Change the emboldening logic again 2018-05-11 12:14:26 +09:00
Makefile.am Add 35-lang-normalize.conf 2019-07-26 07:42:36 +00:00
README.in Bug 63452 - conf.d/README outdated 2013-05-13 12:14:29 +09:00

README.in

conf.d/README

Each file in this directory is a fontconfig configuration file.  Fontconfig
scans this directory, loading all files of the form [0-9][0-9]*.conf.
These files are normally installed in @TEMPLATEDIR@
and then symlinked here, allowing them to be easily installed and then
enabled/disabled by adjusting the symlinks.

The files are loaded in numeric order, the structure of the configuration
has led to the following conventions in usage:

 Files begining with:	Contain:
 
 00 through 09		Font directories
 10 through 19		system rendering defaults (AA, etc)
 20 through 29		font rendering options
 30 through 39		family substitution
 40 through 49		generic identification, map family->generic
 50 through 59		alternate config file loading
 60 through 69		generic aliases, map generic->family
 70 through 79		select font (adjust which fonts are available)
 80 through 89		match target="scan" (modify scanned patterns)
 90 through 99		font synthesis