Scroll to navigation

FONTS-CONFIG(1) FONTS-CONFIG(1)

NAME

fonts-config - configures installed X11 fonts.

SYNOPSIS

fonts-config [OPTION]...

OPTIONS

By default, "hintstyle" is chosen depending on value of autohint for given font. Apart from exceptions (e. g. IPA fonts for example): for fonts, with good instructions*) "hintfull" used and for other fonts "hintslight" is used. You can enforce hintstyle here. Possible values are "none", "hintnone", "hintslight", "hintmedium" and "hintfull". This option can be overriden by --force-bw* options, where "hintfull" is always used.

*) see /usr/share/doc/packages/fonts-config/infinality/good-hinted-tt-fonts.list for reference

By default, FreeType's autohinter is used for fonts, which have no or not good native hinting instructions. You can enforce to use autohinter even for fonts with good instructions*) with this option. hintstyle="hintslight" is used then, when --force-hintstyle do not everrides it.

*) see /usr/share/doc/packages/fonts-config/infinality/good-hinted-tt-fonts.list for fonts with good hinting instructions

FreeType is instructed to use antialias (font smoothing) in rendering by default. You can override this settings with this option, which means that fonts will not bee smoothed but contranst with background will be high, which can suit one's eyes. Liberation Sans family is then automatically prefered over DejaVu Sans. Force using bitmap strikes from the font. Hintstlyle is forced to "hintfull" (this even overrides --force-hintstyle option).

This can produce bitmap quality rendering for good instructed fonts.

This option has lower impact than --force-bw. Sets black and white rendering only for good hinted monospaced fonts (e. g. Liberation Mono). "hintfull" hintstyle is used.
Defines lcd filter to be used. If not overriden by this option, "lcdnone" is used. Possible values are "lcdnone", "lcddefault", "lcdlight" and "lcdlegacy".
Defines lcd subpixel arrangement and orientation for your monitor. Default value is "none". Possible values are "none", "rgb", "vrgb", "bgr", "vbgr", "unknown".
--(no)ebitmaps
Use (or don't use) embedded bitmaps from font.
Limit use of embedded bitmaps to specified in string separated by colons.
Given colon-separated list of prefered sans families, they will be prefered over system preference list of sans families*).

*) see /etc/fonts/conf.d/60-family-prefer.conf for details

Given colon-separated list of prefered monospace families, they will be prefered over system preference list of monospace families*).

*) see /etc/fonts/conf.d/60-family-prefer.conf for details

Given colon-separated list of prefered serif families, they will be prefered over system preference list of serif families*).

*) see /etc/fonts/conf.d/60-family-prefer.conf for details

--(no)forcefpl
Value of --*-families can be overriden, when document or GUI is requesting some particular font. This is very often intended.

With --forcefpl, it is possible to override all such requests with fonts listed in family preference lists (FPLs).

--(no)ttcap
Generate (or don't generate) TTCap entries. TTCap entries can be used with the xtt module and with recent versions of the freetype module.
--(no)java
Generate (or don't generate) font setup for Java.
run fontconfig setup for user. it reads ~/.config/fontconfig/fonts-config, which is user analogy of /etc/sysconfig/fonts-config.
remove user setting created by by --user.
Force the update of all generated files even if it appears to be unnecessary according to the time stamps.
Work silently, unless an error occurs.
Print some progress messages to standard output.
Print a lot of debugging messages to standard output.
Display version and exit.
Display a short help message and exit.
Lists important involved input and output files to fonts-config script.

DESCRIPTION

Configures installed X11 fonts. Basically it does the following things:

fonts-config currently assumes all fonts installed in /usr/share/fonts tree.

For each subdirectory, the time stamps of the directory, the fonts.scale file, the fonts.dir file and an extra time stamp file .fonts-config-timestamp are checked. If not all the time stamps are equal or any of these files is missing, the fonts.scale and fonts.dir files will be updated as follows:

First, fonts.scale file is created by calling mkfontscale.

Then, the entries found in the fonts.scale file are merged with the entries from all fonts.scale.* files.

fonts.scale.* files may be supplied by rpm-packages or manually added by the user to override or amend the entries created automatically by mkfontscale. Entries in a fonts.scale.* file have higher priority than entries automatically created by mkfontscale. All entries generated automatically by mkfontscale for a certain font file are discarded if any fonts.scale.* file contains an entry for the same font file.

After the final list of entries has been written back to fonts.scale, mkfontdir is called.

Finally, the time stamps of the directory, fonts.scale, fonts.dir, and .fonts-config-timestamp are set to the time when fonts-config started.

Generates /etc/fonts/conf.d/10-rendering-options.conf according to rendering options or its bound sysconfig variables. See --force-hintstyle, --force-autohint, --force-bw, --force-bw-monospace, --lcdfilter, --rgba, --ebitmaps, --ebitmapslang options.
creates cache files for fonts to use with client side font rendering via fontconfig/libXft, for details see fc-cache(1). fonts.cache-2 cache files are generated in /var/cache/fontconfig for all directories which are configured in /etc/fonts/fonts.conf and all their subdirectories.

Usually fonts-config is called automatically when package containing font is installed, upgraded or removed. But you can also execute fonts-config directly, which is mainly useful to debug it (use --debug flag).

FILES

/etc/sysconfig/fonts-config
Default values for some command line options of fonts-config are read from this file if it exists. The options currently supported in this file are:
can be set to "none", "hintfull", "hintmedium" , "hintslight" or "hintnone" and is bound to --force-hintstyle option.
can be set to "yes" or "no" and is bound to --force-autohint option.
can be set to "yes" or "no" and is bound to --force-bw option.
can be set to "yes" or "no" and is bound to --force-bw-monospace option.
can be set to "lcdnone", "lcddefault", "lcdlight" and "lcdlegacy" and is bound to --lcdfilter option.
can be set to "none", "rgb", "vrgb", "bgr", "vrgb" or "unknown" and is bound to --rgba option.
can be set to "yes" or "no" and sets the default for the option --ebitmaps.
can be set to colon separated list of languages, sets the default for the --ebitmapslang
can be set to colon separated list of sans families, bound to the --sans-families option.
can be set to colon separated list of serif families, bound to the --serif-families option.
can be set to colon separated list of monospace families, bound to the --mono-families option.
can be set to "yes" or "no" and is bound to --(no)forcefpl option.
can be set to "yes" or "no" and sets the default for the option --(no)ttcap.
can be set to "yes" or "no" and sets the default for the option --(no)java.

SEE ALSO

fc-cache(1), cidfont-x11-config(1), mkfontdir(1), mkfontscale(1)

AUTHOR

Mike FABIAN, 2003, Petr Gajdos <pgajdos@suse.com>, 2014.

2023-12-11 perl v5.38.2