Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  





2 Configuration  





3 Utilities  





4 See also  





5 References  





6 External links  














Fontconfig






Català
Čeština
Français

Norsk bokmål
Português

 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


Original author(s)Keith Packard
Initial release18 December 2000; 23 years ago (2000-12-18)[1][2]
Stable release

2.15.0[3] Edit this on Wikidata / 22 December 2023; 6 months ago (22 December 2023)

Preview release

2.13.96[4] Edit this on Wikidata / 4 February 2022; 2 years ago (4 February 2022)

Repository
Written inC
Operating systemUnix-like systems
TypeFont handling library
LicenseMIT[5]
Websitefontconfig.org

Fontconfig (orfontconfig) is a free software[6] program library designed to provide configuration, enumeration and substitutionoffonts to other programs. Fontconfig was originally written and maintained by Keith Packard, and is currently maintained by Behdad Esfahbod.[7]

Fontconfig is typically used on graphical Linux (and other Unix-like) desktops, such as Xorg and Wayland, where it remains an important part of handling fonts.[8] However, it is also sometimes used on other platforms, notably including Windows versions of software that use Pango for laying out and rendering text, such as GIMP.[9]

Usage[edit]

End-users can use fontconfig, directly or indirectly, to customize and configure fonts on the system.

Applications can use fontconfig in two ways:

  1. by querying it for the available fonts on the system, or
  2. by querying it for a font matching certain parameters (comprising a pattern) as closely as possible.

To perform font matching, fontconfig stores typesetting information about all of the installed fonts, including the name of the font family, style, weight, dots per inch (DPI), and Unicode coverage. This information is also used to perform font substitution.

Configuration[edit]

Fontconfig uses XML format for its configuration files. The document type definition (DTD) for fontconfig files is normally located at /etc/fonts/fonts.dtd.

The master configuration file - usually /etc/fonts/fonts.conf - references a few other configuration locations which may or may not exist:

A simple example of a configuration file:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <!-- Enable antialiasing for all fonts -->
    <match target="font">
        <edit mode="assign" name="antialias"><bool>true</bool></edit>
    </match>
</fontconfig>

Utilities[edit]

Fontconfig ships with eight command line utilities to manage and query fonts and the font configuration of the system:

See also[edit]

References[edit]

  1. ^ "About Fontconfig". www.freedesktop.org. Retrieved 2024-02-28.
  • ^ "Documentation for XFree86[tm] version 4.0.2". xfree86.org. Retrieved 2024-02-28.
  • ^ "2.15.0 · Tags · fontconfig".
  • ^ "Release 2.13.96".
  • ^ "COPYING · master · fontconfig / Fontconfig". Archived from the original on 2021-04-15. Retrieved 2018-09-25.
  • ^ "fontconfig-2.6.0.tar.gz (see file "COPYING")". 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 distrkeithp.comibution of the software without specific, written prior permission...
  • ^ "[Fontconfig] Fontconfig 2.7.0 released". freedesktop.org. 24 June 2009.
  • ^ "State of Text Rendering". behdad.org.
  • ^ "GIMP - Fonts in GIMP". Font configuration is handled by a small library called Fontconfig.
  • External links[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Fontconfig&oldid=1219907512"

    Categories: 
    Free software programmed in C
    Freedesktop.org libraries
    Unix software
    Software using the MIT license
    Hidden categories: 
    Articles with short description
    Short description matches Wikidata
    Wikipedia articles that are too technical from November 2009
    All articles that are too technical
    Articles lacking reliable references from June 2019
    All articles lacking reliable references
    Articles with multiple maintenance issues
     



    This page was last edited on 20 April 2024, at 16:00 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki