Knowledge

Fontconfig

Source 📝

738: 357: 309: 281: 1159: 121: 25: 66: 887:
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
888:
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...
84: 993: 857: 1325: 1310: 687:
of all FreeType readable fonts in a specified directory or create a cache of all FreeType readable fonts from all directories specified in the
677:: Matches font-pattern (empty pattern by default) using the normal fontconfig matching rules to find the most appropriate font available. 1315: 1076: 470: 222: 204: 102: 52: 473:, where it remains an important part of handling fonts. However, it is also sometimes used on other platforms, notably including 514:
To perform font matching, fontconfig stores typesetting information about all of the installed fonts, including the name of the
1056: 142: 135: 1002: 986: 185: 332: 664:
Fontconfig ships with eight command line utilities to manage and query fonts and the font configuration of the system:
157: 1263: 300: 272: 38: 971: 756: 435: 164: 1205: 979: 551: 370: 171: 131: 861: 1320: 1230: 900: 961: 153: 1268: 829: 743: 1167: 1071: 387: 308: 280: 1250: 1220: 1066: 1061: 843: 1158: 1086: 684: 535: 474: 439: 966: 697:: Reads the font information from cache files or related to font directories and emits it in 1289: 1180: 1109: 1014: 496:
can use fontconfig, directly or indirectly, to customize and configure fonts on the system.
397: 377: 341: 1006: 451: 44: 781: 356: 882: 178: 1284: 1304: 527: 447: 443: 432: 243: 16:
Free software library to provide configuration, enumeration and substitution of fonts
1081: 956: 523: 515: 402: 120: 1139: 1134: 1030: 733: 519: 238: 565:- references a few other configuration locations which may or may not exist: 1195: 1175: 462: 1210: 1200: 1185: 1035: 751: 671:: Lists all fonts fontconfig knows about or all fonts matching a pattern. 493: 1258: 1144: 1119: 936: 531: 446:
to other programs. Fontconfig was originally written and maintained by
1225: 1124: 1093: 1051: 713:: Scans font files and directories and reports resulting pattern(s). 506:
by querying it for a font matching certain parameters (comprising a
941:
Font configuration is handled by a small library called Fontconfig.
1215: 1114: 967:
Font Configuration and Customization for Open Source Systems (PDF)
698: 478: 458: 1129: 482: 466: 975: 1240: 1235: 761: 547: 114: 59: 18: 805: 918: 608:<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> 503:
by querying it for the available fonts on the system, or
413: 80: 719:: Lists best font(s) matching the supplied pattern(s). 806:"Documentation for XFree86[tm] version 4.0.2" 707:: Querys font files and reports resulting pattern(s). 1277: 1249: 1166: 1102: 1044: 1023: 1013: 534:coverage. This information is also used to perform 438:designed to provide configuration, enumeration and 408: 396: 386: 376: 366: 331: 299: 271: 249: 237: 75:
may be too technical for most readers to understand
554:(DTD) for fontconfig files is normally located at 901:"[Fontconfig] Fontconfig 2.7.0 released" 725:: Validate font file(s) and reports the results. 614:<!-- Enable antialiasing for all fonts --> 883:"fontconfig-2.6.0.tar.gz (see file "COPYING")" 987: 499:Applications can use fontconfig in two ways: 8: 858:"COPYING · master · fontconfig / Fontconfig" 481:for laying out and rendering text, such as 53:Learn how and when to remove these messages 1020: 994: 980: 972: 600:A simple example of a configuration file: 457:Fontconfig is typically used on graphical 355: 307: 279: 234: 223:Learn how and when to remove this message 205:Learn how and when to remove this message 103:Learn how and when to remove this message 87:, without removing the technical details. 561:The master configuration file - usually 550:format for its configuration files. The 773: 585:$ XDG_CONFIG_HOME/fontconfig/fonts.conf 141:Please improve this article by adding 605:<?xml version="1.0"?> 85:make it understandable to non-experts 7: 580:$ XDG_CONFIG_HOME/fontconfig/conf.d 688: 14: 1264:Open Collaboration Services (OCS) 450:, and is currently maintained by 34:This article has multiple issues. 1157: 736: 119: 64: 23: 42:or discuss these issues on the 1326:Software using the MIT license 477:versions of software that use 1: 1311:Free software programmed in C 1003:Free and open-source software 143:secondary or tertiary sources 830:"2.15.0 · Tags · fontconfig" 1342: 757:X logical font description 648:</bool></edit> 1316:Freedesktop.org libraries 1155: 919:"State of Text Rendering" 510:) as closely as possible. 327: 267: 602: 552:document type definition 1231:Video Acceleration API 937:"GIMP - Fonts in GIMP" 286:; 9 months ago 255:; 23 years ago 130:relies excessively on 641:"antialias" 570:/etc/fonts/fonts.conf 563:/etc/fonts/fonts.conf 392:Font handling library 314:; 2 years ago 253:18 December 2000 744:Free Software portal 556:/etc/fonts/fonts.dtd 465:) desktops, such as 1005:projects hosted by 786:www.freedesktop.org 689:configuration files 654:</fontconfig> 957:fontconfig website 782:"About Fontconfig" 635:"assign" 611:<fontconfig> 284:/ 22 December 2023 239:Original author(s) 1298: 1297: 1153: 1152: 962:fontconfig manual 844:"Release 2.13.96" 575:/etc/fonts/conf.d 536:font substitution 422: 421: 382:Unix-like systems 312:/ 4 February 2022 233: 232: 225: 215: 214: 207: 189: 113: 112: 105: 57: 1333: 1290:Portland Project 1161: 1021: 996: 989: 982: 973: 944: 943: 933: 927: 926: 915: 909: 908: 897: 891: 890: 879: 873: 872: 870: 869: 860:. Archived from 854: 848: 847: 840: 834: 833: 826: 820: 819: 817: 816: 802: 796: 795: 793: 792: 778: 746: 741: 740: 739: 724: 718: 712: 706: 696: 682: 676: 670: 655: 652: 649: 645: 644:><bool> 642: 639: 636: 633: 630: 627: 624: 623:"font" 621: 618: 615: 612: 609: 606: 596: 591: 586: 581: 576: 571: 564: 557: 546:Fontconfig uses 418: 415: 378:Operating system 359: 354: 351: 349: 347: 345: 343: 322: 320: 315: 311: 294: 292: 291:22 December 2023 287: 283: 263: 261: 256: 235: 228: 221: 210: 203: 199: 196: 190: 188: 147: 123: 115: 108: 101: 97: 94: 88: 68: 67: 60: 49: 27: 26: 19: 1341: 1340: 1336: 1335: 1334: 1332: 1331: 1330: 1301: 1300: 1299: 1294: 1273: 1245: 1162: 1149: 1098: 1040: 1009: 1007:freedesktop.org 1000: 953: 948: 947: 935: 934: 930: 917: 916: 912: 907:. 24 June 2009. 905:freedesktop.org 899: 898: 894: 881: 880: 876: 867: 865: 856: 855: 851: 842: 841: 837: 828: 827: 823: 814: 812: 804: 803: 799: 790: 788: 780: 779: 775: 770: 742: 737: 735: 732: 722: 716: 710: 704: 694: 680: 674: 668: 662: 657: 656: 653: 650: 647: 643: 640: 637: 634: 631: 628: 625: 622: 619: 616: 613: 610: 607: 604: 594: 590:~/.fonts.conf.d 589: 584: 579: 574: 569: 562: 555: 544: 491: 452:Behdad Esfahbod 436:program library 412: 362: 340: 323: 319:4 February 2022 318: 316: 313: 301:Preview release 295: 290: 288: 285: 259: 257: 254: 250:Initial release 229: 218: 217: 216: 211: 200: 194: 191: 148: 146: 140: 136:primary sources 124: 109: 98: 92: 89: 81:help improve it 78: 69: 65: 28: 24: 17: 12: 11: 5: 1339: 1337: 1329: 1328: 1323: 1318: 1313: 1303: 1302: 1296: 1295: 1293: 1292: 1287: 1285:Create Project 1281: 1279: 1275: 1274: 1272: 1271: 1266: 1261: 1255: 1253: 1247: 1246: 1244: 1243: 1238: 1233: 1228: 1223: 1218: 1213: 1208: 1203: 1198: 1193: 1188: 1183: 1178: 1172: 1170: 1164: 1163: 1156: 1154: 1151: 1150: 1148: 1147: 1142: 1137: 1132: 1127: 1122: 1117: 1112: 1106: 1104: 1100: 1099: 1097: 1096: 1091: 1090: 1089: 1079: 1074: 1069: 1064: 1059: 1054: 1048: 1046: 1042: 1041: 1039: 1038: 1033: 1027: 1025: 1018: 1011: 1010: 1001: 999: 998: 991: 984: 976: 970: 969: 964: 959: 952: 951:External links 949: 946: 945: 928: 910: 892: 874: 849: 835: 821: 797: 772: 771: 769: 766: 765: 764: 759: 754: 748: 747: 731: 728: 727: 726: 720: 714: 708: 702: 692: 678: 672: 661: 658: 651:</match> 603: 598: 597: 592: 587: 582: 577: 572: 543: 540: 512: 511: 504: 490: 487: 420: 419: 410: 406: 405: 400: 394: 393: 390: 384: 383: 380: 374: 373: 368: 364: 363: 361: 360: 337: 335: 329: 328: 325: 324: 305: 303: 297: 296: 277: 275: 273:Stable release 269: 268: 265: 264: 251: 247: 246: 241: 231: 230: 213: 212: 127: 125: 118: 111: 110: 72: 70: 63: 58: 32: 31: 29: 22: 15: 13: 10: 9: 6: 4: 3: 2: 1338: 1327: 1324: 1322: 1321:Unix software 1319: 1317: 1314: 1312: 1309: 1308: 1306: 1291: 1288: 1286: 1283: 1282: 1280: 1276: 1270: 1267: 1265: 1262: 1260: 1257: 1256: 1254: 1252: 1248: 1242: 1239: 1237: 1234: 1232: 1229: 1227: 1224: 1222: 1219: 1217: 1214: 1212: 1209: 1207: 1204: 1202: 1199: 1197: 1194: 1192: 1189: 1187: 1184: 1182: 1179: 1177: 1174: 1173: 1171: 1169: 1165: 1160: 1146: 1143: 1141: 1138: 1136: 1133: 1131: 1128: 1126: 1123: 1121: 1118: 1116: 1113: 1111: 1108: 1107: 1105: 1101: 1095: 1092: 1088: 1085: 1084: 1083: 1080: 1078: 1075: 1073: 1070: 1068: 1065: 1063: 1060: 1058: 1055: 1053: 1050: 1049: 1047: 1043: 1037: 1034: 1032: 1029: 1028: 1026: 1022: 1019: 1016: 1012: 1008: 1004: 997: 992: 990: 985: 983: 978: 977: 974: 968: 965: 963: 960: 958: 955: 954: 950: 942: 938: 932: 929: 924: 920: 914: 911: 906: 902: 896: 893: 889: 884: 878: 875: 864:on 2021-04-15 863: 859: 853: 850: 845: 839: 836: 831: 825: 822: 811: 807: 801: 798: 787: 783: 777: 774: 767: 763: 760: 758: 755: 753: 750: 749: 745: 734: 729: 721: 715: 709: 703: 700: 693: 690: 686: 679: 673: 667: 666: 665: 659: 601: 595:~/.fonts.conf 593: 588: 583: 578: 573: 568: 567: 566: 559: 553: 549: 542:Configuration 541: 539: 537: 533: 529: 528:dots per inch 525: 521: 517: 509: 505: 502: 501: 500: 497: 495: 488: 486: 484: 480: 476: 472: 468: 464: 460: 455: 453: 449: 448:Keith Packard 445: 441: 437: 434: 433:free software 430: 426: 417: 411: 407: 404: 401: 399: 395: 391: 389: 385: 381: 379: 375: 372: 369: 365: 358: 353: 339: 338: 336: 334: 330: 326: 310: 306:2.13.96  304: 302: 298: 282: 276: 274: 270: 266: 252: 248: 245: 244:Keith Packard 242: 240: 236: 227: 224: 209: 206: 198: 187: 184: 180: 177: 173: 170: 166: 163: 159: 156: –  155: 151: 150:Find sources: 144: 138: 137: 133: 128:This article 126: 122: 117: 116: 107: 104: 96: 93:November 2009 86: 82: 76: 73:This article 71: 62: 61: 56: 54: 47: 46: 41: 40: 35: 30: 21: 20: 1190: 1082:X.Org Server 940: 931: 922: 913: 904: 895: 886: 877: 866:. Retrieved 862:the original 852: 838: 824: 813:. Retrieved 809: 800: 789:. Retrieved 785: 776: 683:: Creates a 663: 599: 560: 545: 513: 507: 498: 492: 456: 440:substitution 428: 424: 423: 344:.freedesktop 278:2.15.0  219: 201: 192: 182: 175: 168: 161: 154:"Fontconfig" 149: 129: 99: 90: 74: 50: 43: 37: 36:Please help 33: 810:xfree86.org 723:fc-validate 530:(DPI), and 516:font family 461:(and other 350:/fontconfig 348:/fontconfig 1305:Categories 1251:Frameworks 1191:Fontconfig 1140:pkg-config 1135:PackageKit 1031:PulseAudio 1017:components 923:behdad.org 868:2018-09-25 815:2024-02-28 791:2024-02-28 768:References 717:fc-pattern 429:fontconfig 425:Fontconfig 414:fontconfig 367:Written in 333:Repository 260:2000-12-18 165:newspapers 132:references 39:improve it 1269:Telepathy 1196:GStreamer 1176:AppStream 1168:Libraries 660:Utilities 617:<match 494:End-users 463:Unix-like 195:June 2019 45:talk page 1278:Meetings 1211:HarfBuzz 1201:libinput 1186:FreeType 1072:Plymouth 1045:Graphics 1036:PipeWire 752:FreeType 730:See also 705:fc-query 681:fc-cache 675:fc-match 629:<edit 1259:CppUnit 1221:Poppler 1206:Mesa 3D 1145:Systemd 1120:Flatpak 1077:Wayland 1067:nouveau 1062:Enchant 711:fc-scan 669:fc-list 620:target= 532:Unicode 508:pattern 475:Windows 471:Wayland 431:) is a 409:Website 398:License 317: ( 289: ( 258: ( 179:scholar 79:Please 1226:Swfdec 1125:Kmscon 1094:Xephyr 1087:Glamor 1052:Compiz 695:fc-cat 524:weight 342:gitlab 181:  174:  167:  160:  152:  1216:Pango 1181:Cairo 1115:D-Bus 1110:Avahi 1103:Other 1024:Sound 701:form. 699:ASCII 685:cache 638:name= 632:mode= 520:style 489:Usage 479:Pango 459:Linux 444:fonts 186:JSTOR 172:books 1130:luit 646:true 626:> 483:GIMP 469:and 467:Xorg 427:(or 416:.org 388:Type 352:.git 346:.org 158:news 1241:Xft 1236:XCB 1057:DRI 762:Xft 548:XML 442:of 403:MIT 134:to 83:to 1307:: 1015:OS 939:. 921:. 903:. 885:. 808:. 784:. 558:. 538:. 526:, 522:, 518:, 485:. 454:. 145:. 48:. 995:e 988:t 981:v 925:. 871:. 846:. 832:. 818:. 794:. 691:. 371:C 321:) 293:) 262:) 226:) 220:( 208:) 202:( 197:) 193:( 183:· 176:· 169:· 162:· 139:. 106:) 100:( 95:) 91:( 77:. 55:) 51:(

Index

improve it
talk page
Learn how and when to remove these messages
help improve it
make it understandable to non-experts
Learn how and when to remove this message

references
primary sources
secondary or tertiary sources
"Fontconfig"
news
newspapers
books
scholar
JSTOR
Learn how and when to remove this message
Learn how and when to remove this message
Original author(s)
Keith Packard
Stable release
Edit this on Wikidata
Preview release
Edit this on Wikidata
Repository
gitlab.freedesktop.org/fontconfig/fontconfig.git
Edit this at Wikidata
C
Operating system
Type

Text is available under the Creative Commons Attribution-ShareAlike License. Additional terms may apply.