Fontconfig

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 thus free 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 perform font 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.conf

A 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 a cache of all FreeType 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 in ASCII 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 are free 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.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • Fontconfig — est une bibliothèque logicielle pour X Window System que l on doit à Keith Packard et qui permet de configurer les polices de caractères. Les polices de caractères sont rangées dans l ordinateur différemment selon le système d exploitation… …   Wikipédia en Français

  • Font substitution — is the process of using one font in place of another when the intended font either is not available or does not contain glyphs for the required characters.Font substitution is aided by classifying fonts into families, such that for example a sans …   Wikipedia

  • Keith Packard — Infobox Person name = Keith Packard image size = caption = Keith Packard at OLS 2004, keeping his network up birth name = birth date = birth place = death date = death place = death cause = resting place = resting place coordinates = residence =… …   Wikipedia

  • Xft — Xft, the X FreeType interface library, is a free computer program library written by Keith Packard. As of version 2.1, it is licensed under a quasi BSD license.It is designed to allow the FreeType rasterizer to be used with the X Rendering… …   Wikipedia

  • Substitution de police — La technique de substitution de police est le procédé permettant d utiliser une police de caractère à la place d une autre quand la police désirée ne permet pas d afficher le glyphe pour un caractère/codepoint. La substitution de police se fonde… …   Wikipédia en Français

  • XFT (bibliothèque logicielle) — Pour les articles homonymes, voir XFT. Xft …   Wikipédia en Français

  • Keith Packard — en OLS 2004. Nacimiento …   Wikipedia Español

  • FreeType — Тип растеризация шрифтов Автор David Turner, Robert Wilhelm …   Википедия

  • Freedesktop.org — Логотип freedesktop.org freedesktop.org (дословный перевод «Сообщество за свободный рабочий стол») инициативная группа по стандартизации различных графических сред пользователя для операционных систем POSIX. Хотя формально она не представляет… …   Википедия

  • Russian Fedora — RFRemix Разработчик Проект Russian Fedora Семейство ОС …   Википедия

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”