- Fontconfig
Infobox Software
name = Fontconfig
caption =
developer =Keith Packard
latest_release_version = 2.6.0
latest_release_date = release date and age|2008|5|29
operating_system =Unix-like systems
platform =
genre = Font handling library
license =
website = http://fontconfig.org/Fontconfig (the name is spelled in both capitalized and uncapitalized form) is a computer program library designed to provide system-wide font configuration, customization, and application access. Fontconfig is written and maintained by
Keith Packard .Fontconfig is distributed under a
permissive free software licence , and is thusfree software . [cite web
url=http://fontconfig.org/release/fontconfig-2.6.0.tar.gz
title=fontconfig-2.6.0.tar.gz (see file "COPYING")
quote=Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Keith Packard not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission...|]Applications can use fontconfig in two ways:
# by querying it for the available fonts on the system or
# by asking it for a font matching certain parameters ("pattern"). Fontconfig will then return a font whose properties match those specified in the pattern as closely as possible.To perform font matching, fontconfig stores a lot of typesetting information about all of the installed fonts, such as the name of the
font family , style, weight, DPI,Unicode coverage etc. This information is also used to performfont substitution .Files
Fontconfig uses
XML format for its configuration files. The DTD for fontconfig files is normally located at /etc/fonts/fonts.dtd.Master configuration file is usually /etc/fonts/fonts.conf; it references a few other configuration locations which may or may not exist:
* /etc/fonts/local.conf
* /etc/fonts/conf.d directory
* ~/.fonts.confA simple example of a configuration file:
<!-- Enable antialiasing for all fonts --> true See the [http://fontconfig.org/fontconfig-user.html fontconfig manual] for details.
Utilities
fontconfig ships with four command line utilities to manage the font configuration:
* "fc-list": Lists all fonts fontconfig knows about or all fonts matching a pattern.
* "fc-cache": Creates acache of allFreeType readable fonts in a specified directory or create a cache of all FreeType readable fonts from all directories specified in Configuration files.
* "fc-cat": reads the font information from cache files or related to font directories and emits it inASCII form.
* "fc-match": matches font-pattern (empty pattern by default) using the normal fontconfig matching rules to find the best font available.Fontconfig depends on
FreeType , a font renderer, and expat, an XML parser library, both arefree software .Fontmatrix is an interactive tool with a graphical user interface which can use fontconfig to list available fonts and display information about them.Versioning scheme
fontconfig uses a versioning scheme in which values of 90 or above in the last number indicate prerelease versions.
External links
* [http://fontconfig.org/ fontconfig website]
* [http://keithp.com/~keithp/talks/guadec2002/fontconfig.pdf Font Configuration and Customization for Open Source Systems (PDF)]See also
*
X logical font description References
Wikimedia Foundation. 2010.