1a6844aabSmrg<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd"> 22c393a42Smrg<HTML 32c393a42Smrg><HEAD 42c393a42Smrg><TITLE 52c393a42Smrg>fonts-conf</TITLE 62c393a42Smrg><META 72c393a42SmrgNAME="GENERATOR" 82c393a42SmrgCONTENT="Modular DocBook HTML Stylesheet Version 1.79"></HEAD 92c393a42Smrg><BODY 102c393a42SmrgCLASS="REFENTRY" 112c393a42SmrgBGCOLOR="#FFFFFF" 122c393a42SmrgTEXT="#000000" 132c393a42SmrgLINK="#0000FF" 142c393a42SmrgVLINK="#840084" 152c393a42SmrgALINK="#0000FF" 162c393a42Smrg><H1 172c393a42Smrg><A 182c393a42SmrgNAME="AEN1" 192c393a42Smrg></A 202c393a42Smrg>fonts-conf</H1 212c393a42Smrg><DIV 222c393a42SmrgCLASS="REFNAMEDIV" 232c393a42Smrg><A 242c393a42SmrgNAME="AEN5" 252c393a42Smrg></A 262c393a42Smrg><H2 272c393a42Smrg>Name</H2 282c393a42Smrg>fonts.conf -- Font configuration files</DIV 292c393a42Smrg><DIV 302c393a42SmrgCLASS="REFSYNOPSISDIV" 312c393a42Smrg><A 322c393a42SmrgNAME="AEN8" 332c393a42Smrg></A 342c393a42Smrg><H2 352c393a42Smrg>Synopsis</H2 36a6844aabSmrg><TABLE 37a6844aabSmrgBORDER="0" 38a6844aabSmrgBGCOLOR="#E0E0E0" 39a6844aabSmrgWIDTH="100%" 40a6844aabSmrg><TR 41a6844aabSmrg><TD 422c393a42Smrg><PRE 432c393a42SmrgCLASS="SYNOPSIS" 442c393a42Smrg> /etc/fonts/fonts.conf 452c393a42Smrg /etc/fonts/fonts.dtd 462c393a42Smrg /etc/fonts/conf.d 47ca08ab68Smrg $XDG_CONFIG_HOME/fontconfig/conf.d 48ca08ab68Smrg $XDG_CONFIG_HOME/fontconfig/fonts.conf 49a6844aabSmrg ~/.fonts.conf.d 502c393a42Smrg ~/.fonts.conf</PRE 51a6844aabSmrg></TD 52a6844aabSmrg></TR 53a6844aabSmrg></TABLE 542c393a42Smrg></DIV 552c393a42Smrg><DIV 562c393a42SmrgCLASS="REFSECT1" 572c393a42Smrg><A 582c393a42SmrgNAME="AEN10" 592c393a42Smrg></A 602c393a42Smrg><H2 612c393a42Smrg>Description</H2 622c393a42Smrg><P 632c393a42Smrg>Fontconfig is a library designed to provide system-wide font configuration, 642c393a42Smrgcustomization and application access. 652c393a42Smrg </P 662c393a42Smrg></DIV 672c393a42Smrg><DIV 682c393a42SmrgCLASS="REFSECT1" 692c393a42Smrg><A 702c393a42SmrgNAME="AEN13" 712c393a42Smrg></A 722c393a42Smrg><H2 732c393a42Smrg>Functional Overview</H2 742c393a42Smrg><P 752c393a42Smrg>Fontconfig contains two essential modules, the configuration module which 762c393a42Smrgbuilds an internal configuration from XML files and the matching module 772c393a42Smrgwhich accepts font patterns and returns the nearest matching font. 782c393a42Smrg </P 792c393a42Smrg><DIV 802c393a42SmrgCLASS="REFSECT2" 812c393a42Smrg><A 822c393a42SmrgNAME="AEN16" 832c393a42Smrg></A 842c393a42Smrg><H3 852c393a42Smrg>Font Configuration</H3 862c393a42Smrg><P 872c393a42Smrg>The configuration module consists of the FcConfig datatype, libexpat and 882c393a42SmrgFcConfigParse which walks over an XML tree and amends a configuration with 892c393a42Smrgdata found within. From an external perspective, configuration of the 902c393a42Smrglibrary consists of generating a valid XML tree and feeding that to 912c393a42SmrgFcConfigParse. The only other mechanism provided to applications for 922c393a42Smrgchanging the running configuration is to add fonts and directories to the 93ae02b298Smrglist of application-provided font files. 942c393a42Smrg </P 952c393a42Smrg><P 962c393a42Smrg>The intent is to make font configurations relatively static, and shared by 972c393a42Smrgas many applications as possible. It is hoped that this will lead to more 982c393a42Smrgstable font selection when passing names from one application to another. 992c393a42SmrgXML was chosen as a configuration file format because it provides a format 1002c393a42Smrgwhich is easy for external agents to edit while retaining the correct 1012c393a42Smrgstructure and syntax. 1022c393a42Smrg </P 1032c393a42Smrg><P 1042c393a42Smrg>Font configuration is separate from font matching; applications needing to 1052c393a42Smrgdo their own matching can access the available fonts from the library and 1062c393a42Smrgperform private matching. The intent is to permit applications to pick and 1072c393a42Smrgchoose appropriate functionality from the library instead of forcing them to 1082c393a42Smrgchoose between this library and a private configuration mechanism. The hope 1092c393a42Smrgis that this will ensure that configuration of fonts for all applications 1102c393a42Smrgcan be centralized in one place. Centralizing font configuration will 1112c393a42Smrgsimplify and regularize font installation and customization. 1122c393a42Smrg </P 1132c393a42Smrg></DIV 1142c393a42Smrg><DIV 1152c393a42SmrgCLASS="REFSECT2" 1162c393a42Smrg><A 1172c393a42SmrgNAME="AEN21" 1182c393a42Smrg></A 1192c393a42Smrg><H3 1202c393a42Smrg>Font Properties</H3 1212c393a42Smrg><P 1222c393a42Smrg>While font patterns may contain essentially any properties, there are some 1232c393a42Smrgwell known properties with associated types. Fontconfig uses some of these 1242c393a42Smrgproperties for font matching and font completion. Others are provided as a 1252c393a42Smrgconvenience for the applications' rendering mechanism. 1262c393a42Smrg </P 127a6844aabSmrg><TABLE 128a6844aabSmrgBORDER="0" 129a6844aabSmrgBGCOLOR="#E0E0E0" 130a6844aabSmrgWIDTH="100%" 131a6844aabSmrg><TR 132a6844aabSmrg><TD 1332c393a42Smrg><PRE 1342c393a42SmrgCLASS="PROGRAMLISTING" 135ae02b298Smrg>Property Type Description 136ae02b298Smrg-------------------------------------------------------------- 137ae02b298Smrgfamily String Font family names 138ae02b298Smrgfamilylang String Languages corresponding to each family 139ae02b298Smrgstyle String Font style. Overrides weight and slant 140ae02b298Smrgstylelang String Languages corresponding to each style 141ae02b298Smrgfullname String Font full names (often includes style) 142ae02b298Smrgfullnamelang String Languages corresponding to each fullname 143ae02b298Smrgslant Int Italic, oblique or roman 144ae02b298Smrgweight Int Light, medium, demibold, bold or black 145ae02b298Smrgsize Double Point size 146ae02b298Smrgwidth Int Condensed, normal or expanded 147ae02b298Smrgaspect Double Stretches glyphs horizontally before hinting 148ae02b298Smrgpixelsize Double Pixel size 149ae02b298Smrgspacing Int Proportional, dual-width, monospace or charcell 150ae02b298Smrgfoundry String Font foundry name 151ae02b298Smrgantialias Bool Whether glyphs can be antialiased 152ae02b298Smrghinting Bool Whether the rasterizer should use hinting 153ae02b298Smrghintstyle Int Automatic hinting style 154ae02b298Smrgverticallayout Bool Use vertical layout 155ae02b298Smrgautohint Bool Use autohinter instead of normal hinter 156ae02b298Smrgglobaladvance Bool Use font global advance data (deprecated) 157ae02b298Smrgfile String The filename holding the font 158ae02b298Smrgindex Int The index of the font within the file 159ae02b298Smrgftface FT_Face Use the specified FreeType face object 160ae02b298Smrgrasterizer String Which rasterizer is in use (deprecated) 161ae02b298Smrgoutline Bool Whether the glyphs are outlines 162ae02b298Smrgscalable Bool Whether glyphs can be scaled 163ae02b298Smrgcolor Bool Whether any glyphs have color 164ae02b298Smrgscale Double Scale factor for point->pixel conversions 165ae02b298Smrg (deprecated) 166ae02b298Smrgdpi Double Target dots per inch 167ae02b298Smrgrgba Int unknown, rgb, bgr, vrgb, vbgr, 168ae02b298Smrg none - subpixel geometry 169ae02b298Smrglcdfilter Int Type of LCD filter 170ae02b298Smrgminspace Bool Eliminate leading from line spacing 171ae02b298Smrgcharset CharSet Unicode chars encoded by the font 172ae02b298Smrglang String List of RFC-3066-style languages this 173ae02b298Smrg font supports 174ae02b298Smrgfontversion Int Version number of the font 175ae02b298Smrgcapability String List of layout capabilities in the font 176ae02b298Smrgfontformat String String name of the font format 177ae02b298Smrgembolden Bool Rasterizer should synthetically embolden the font 178ae02b298Smrgembeddedbitmap Bool Use the embedded bitmap instead of the outline 179ae02b298Smrgdecorative Bool Whether the style is a decorative variant 180ae02b298Smrgfontfeatures String List of the feature tags in OpenType to be enabled 181ae02b298Smrgnamelang String Language name to be used for the default value of 182ae02b298Smrg familylang, stylelang, and fullnamelang 183ae02b298Smrgprgname String String Name of the running program 184ae02b298Smrgpostscriptname String Font family name in PostScript 185ae02b298Smrgfonthashint Bool Whether the font has hinting 186ae02b298Smrgorder Int Order number of the font 1872c393a42Smrg </PRE 188a6844aabSmrg></TD 189a6844aabSmrg></TR 190a6844aabSmrg></TABLE 1912c393a42Smrg></DIV 1922c393a42Smrg><DIV 1932c393a42SmrgCLASS="REFSECT2" 1942c393a42Smrg><A 1952c393a42SmrgNAME="AEN25" 1962c393a42Smrg></A 1972c393a42Smrg><H3 1982c393a42Smrg>Font Matching</H3 1992c393a42Smrg><P 2002c393a42Smrg>Fontconfig performs matching by measuring the distance from a provided 2012c393a42Smrgpattern to all of the available fonts in the system. The closest matching 2022c393a42Smrgfont is selected. This ensures that a font will always be returned, but 2032c393a42Smrgdoesn't ensure that it is anything like the requested pattern. 2042c393a42Smrg </P 2052c393a42Smrg><P 206ae02b298Smrg>Font matching starts with an application constructed pattern. The desired 2072c393a42Smrgattributes of the resulting font are collected together in a pattern. Each 2082c393a42Smrgproperty of the pattern can contain one or more values; these are listed in 2092c393a42Smrgpriority order; matches earlier in the list are considered "closer" than 2102c393a42Smrgmatches later in the list. 2112c393a42Smrg </P 2122c393a42Smrg><P 2132c393a42Smrg>The initial pattern is modified by applying the list of editing instructions 2142c393a42Smrgspecific to patterns found in the configuration; each consists of a match 2152c393a42Smrgpredicate and a set of editing operations. They are executed in the order 2162c393a42Smrgthey appeared in the configuration. Each match causes the associated 2172c393a42Smrgsequence of editing operations to be applied. 2182c393a42Smrg </P 2192c393a42Smrg><P 2202c393a42Smrg>After the pattern has been edited, a sequence of default substitutions are 2212c393a42Smrgperformed to canonicalize the set of available properties; this avoids the 2222c393a42Smrgneed for the lower layers to constantly provide default values for various 2232c393a42Smrgfont properties during rendering. 2242c393a42Smrg </P 2252c393a42Smrg><P 2262c393a42Smrg>The canonical font pattern is finally matched against all available fonts. 2272c393a42SmrgThe distance from the pattern to the font is measured for each of several 2282c393a42Smrgproperties: foundry, charset, family, lang, spacing, pixelsize, style, 2292c393a42Smrgslant, weight, antialias, rasterizer and outline. This list is in priority 2302c393a42Smrgorder -- results of comparing earlier elements of this list weigh more 2312c393a42Smrgheavily than later elements. 2322c393a42Smrg </P 2332c393a42Smrg><P 2342c393a42Smrg>There is one special case to this rule; family names are split into two 2352c393a42Smrgbindings; strong and weak. Strong family names are given greater precedence 2362c393a42Smrgin the match than lang elements while weak family names are given lower 2372c393a42Smrgprecedence than lang elements. This permits the document language to drive 2382c393a42Smrgfont selection when any document specified font is unavailable. 2392c393a42Smrg </P 2402c393a42Smrg><P 2412c393a42Smrg>The pattern representing that font is augmented to include any properties 2422c393a42Smrgfound in the pattern but not found in the font itself; this permits the 2432c393a42Smrgapplication to pass rendering instructions or any other data through the 2442c393a42Smrgmatching system. Finally, the list of editing instructions specific to 2452c393a42Smrgfonts found in the configuration are applied to the pattern. This modified 2462c393a42Smrgpattern is returned to the application. 2472c393a42Smrg </P 2482c393a42Smrg><P 2492c393a42Smrg>The return value contains sufficient information to locate and rasterize the 2502c393a42Smrgfont, including the file name, pixel size and other rendering data. As 2512c393a42Smrgnone of the information involved pertains to the FreeType library, 2522c393a42Smrgapplications are free to use any rasterization engine or even to take 2532c393a42Smrgthe identified font file and access it directly. 2542c393a42Smrg </P 2552c393a42Smrg><P 2562c393a42Smrg>The match/edit sequences in the configuration are performed in two passes 2572c393a42Smrgbecause there are essentially two different operations necessary -- the 2582c393a42Smrgfirst is to modify how fonts are selected; aliasing families and adding 2592c393a42Smrgsuitable defaults. The second is to modify how the selected fonts are 2602c393a42Smrgrasterized. Those must apply to the selected font, not the original pattern 2612c393a42Smrgas false matches will often occur. 2622c393a42Smrg </P 2632c393a42Smrg></DIV 2642c393a42Smrg><DIV 2652c393a42SmrgCLASS="REFSECT2" 2662c393a42Smrg><A 2672c393a42SmrgNAME="AEN36" 2682c393a42Smrg></A 2692c393a42Smrg><H3 2702c393a42Smrg>Font Names</H3 2712c393a42Smrg><P 2722c393a42Smrg>Fontconfig provides a textual representation for patterns that the library 2732c393a42Smrgcan both accept and generate. The representation is in three parts, first a 2742c393a42Smrglist of family names, second a list of point sizes and finally a list of 2752c393a42Smrgadditional properties: 2762c393a42Smrg </P 277a6844aabSmrg><TABLE 278a6844aabSmrgBORDER="0" 279a6844aabSmrgBGCOLOR="#E0E0E0" 280a6844aabSmrgWIDTH="100%" 281a6844aabSmrg><TR 282a6844aabSmrg><TD 2832c393a42Smrg><PRE 2842c393a42SmrgCLASS="PROGRAMLISTING" 285ae02b298Smrg><families>-<point sizes>:<name1>=<values1>:<name2>=<values2>... 2862c393a42Smrg </PRE 287a6844aabSmrg></TD 288a6844aabSmrg></TR 289a6844aabSmrg></TABLE 2902c393a42Smrg><P 2912c393a42Smrg>Values in a list are separated with commas. The name needn't include either 2922c393a42Smrgfamilies or point sizes; they can be elided. In addition, there are 2932c393a42Smrgsymbolic constants that simultaneously indicate both a name and a value. 2942c393a42SmrgHere are some examples: 2952c393a42Smrg </P 296a6844aabSmrg><TABLE 297a6844aabSmrgBORDER="0" 298a6844aabSmrgBGCOLOR="#E0E0E0" 299a6844aabSmrgWIDTH="100%" 300a6844aabSmrg><TR 301a6844aabSmrg><TD 3022c393a42Smrg><PRE 3032c393a42SmrgCLASS="PROGRAMLISTING" 304ae02b298Smrg>Name Meaning 305ae02b298Smrg---------------------------------------------------------- 306ae02b298SmrgTimes-12 12 point Times Roman 307ae02b298SmrgTimes-12:bold 12 point Times Bold 308ae02b298SmrgCourier:italic Courier Italic in the default size 309ae02b298SmrgMonospace:matrix=1 .1 0 1 The users preferred monospace font 310ae02b298Smrg with artificial obliquing 3112c393a42Smrg </PRE 312a6844aabSmrg></TD 313a6844aabSmrg></TR 314a6844aabSmrg></TABLE 3152c393a42Smrg><P 316ca08ab68Smrg>The '\', '-', ':' and ',' characters in family names must be preceded by a 3172c393a42Smrg'\' character to avoid having them misinterpreted. Similarly, values 318ca08ab68Smrgcontaining '\', '=', '_', ':' and ',' must also have them preceded by a 3192c393a42Smrg'\' character. The '\' characters are stripped out of the family name and 3202c393a42Smrgvalues as the font name is read. 3212c393a42Smrg </P 3222c393a42Smrg></DIV 3232c393a42Smrg></DIV 3242c393a42Smrg><DIV 3252c393a42SmrgCLASS="REFSECT1" 3262c393a42Smrg><A 327ca08ab68SmrgNAME="DEBUG" 3282c393a42Smrg></A 3292c393a42Smrg><H2 3302c393a42Smrg>Debugging Applications</H2 3312c393a42Smrg><P 3322c393a42Smrg>To help diagnose font and applications problems, fontconfig is built with a 3332c393a42Smrglarge amount of internal debugging left enabled. It is controlled by means 3342c393a42Smrgof the FC_DEBUG environment variable. The value of this variable is 3352c393a42Smrginterpreted as a number, and each bit within that value controls different 3362c393a42Smrgdebugging messages. 3372c393a42Smrg </P 338a6844aabSmrg><TABLE 339a6844aabSmrgBORDER="0" 340a6844aabSmrgBGCOLOR="#E0E0E0" 341a6844aabSmrgWIDTH="100%" 342a6844aabSmrg><TR 343a6844aabSmrg><TD 3442c393a42Smrg><PRE 3452c393a42SmrgCLASS="PROGRAMLISTING" 346ae02b298Smrg>Name Value Meaning 347ae02b298Smrg--------------------------------------------------------- 348ae02b298SmrgMATCH 1 Brief information about font matching 349ae02b298SmrgMATCHV 2 Extensive font matching information 350ae02b298SmrgEDIT 4 Monitor match/test/edit execution 351ae02b298SmrgFONTSET 8 Track loading of font information at startup 352ae02b298SmrgCACHE 16 Watch cache files being written 353ae02b298SmrgCACHEV 32 Extensive cache file writing information 354ae02b298SmrgPARSE 64 (no longer in use) 355ae02b298SmrgSCAN 128 Watch font files being scanned to build caches 356ae02b298SmrgSCANV 256 Verbose font file scanning information 357ae02b298SmrgMEMORY 512 Monitor fontconfig memory usage 358ae02b298SmrgCONFIG 1024 Monitor which config files are loaded 359ae02b298SmrgLANGSET 2048 Dump char sets used to construct lang values 360ae02b298SmrgMATCH2 4096 Display font-matching transformation in patterns 3612c393a42Smrg </PRE 362a6844aabSmrg></TD 363a6844aabSmrg></TR 364a6844aabSmrg></TABLE 3652c393a42Smrg><P 3662c393a42Smrg>Add the value of the desired debug levels together and assign that (in 3672c393a42Smrgbase 10) to the FC_DEBUG environment variable before running the 3682c393a42Smrgapplication. Output from these statements is sent to stdout. 3692c393a42Smrg </P 3702c393a42Smrg></DIV 3712c393a42Smrg><DIV 3722c393a42SmrgCLASS="REFSECT1" 3732c393a42Smrg><A 3742c393a42SmrgNAME="AEN48" 3752c393a42Smrg></A 3762c393a42Smrg><H2 3772c393a42Smrg>Lang Tags</H2 3782c393a42Smrg><P 3792c393a42Smrg>Each font in the database contains a list of languages it supports. This is 3802c393a42Smrgcomputed by comparing the Unicode coverage of the font with the orthography 3812c393a42Smrgof each language. Languages are tagged using an RFC-3066 compatible naming 3822c393a42Smrgand occur in two parts -- the ISO 639 language tag followed a hyphen and then 3832c393a42Smrgby the ISO 3166 country code. The hyphen and country code may be elided. 3842c393a42Smrg </P 3852c393a42Smrg><P 3862c393a42Smrg>Fontconfig has orthographies for several languages built into the library. 3872c393a42SmrgNo provision has been made for adding new ones aside from rebuilding the 3882c393a42Smrglibrary. It currently supports 122 of the 139 languages named in ISO 639-1, 3892c393a42Smrg141 of the languages with two-letter codes from ISO 639-2 and another 30 3902c393a42Smrglanguages with only three-letter codes. Languages with both two and three 3912c393a42Smrgletter codes are provided with only the two letter code. 3922c393a42Smrg </P 3932c393a42Smrg><P 3942c393a42Smrg>For languages used in multiple territories with radically different 3952c393a42Smrgcharacter sets, fontconfig includes per-territory orthographies. This 3962c393a42Smrgincludes Azerbaijani, Kurdish, Pashto, Tigrinya and Chinese. 3972c393a42Smrg </P 3982c393a42Smrg></DIV 3992c393a42Smrg><DIV 4002c393a42SmrgCLASS="REFSECT1" 4012c393a42Smrg><A 4022c393a42SmrgNAME="AEN53" 4032c393a42Smrg></A 4042c393a42Smrg><H2 4052c393a42Smrg>Configuration File Format</H2 4062c393a42Smrg><P 4072c393a42Smrg>Configuration files for fontconfig are stored in XML format; this 4082c393a42Smrgformat makes external configuration tools easier to write and ensures that 4092c393a42Smrgthey will generate syntactically correct configuration files. As XML 4102c393a42Smrgfiles are plain text, they can also be manipulated by the expert user using 4112c393a42Smrga text editor. 4122c393a42Smrg </P 4132c393a42Smrg><P 4142c393a42Smrg>The fontconfig document type definition resides in the external entity 4152c393a42Smrg"fonts.dtd"; this is normally stored in the default font configuration 4162c393a42Smrgdirectory (/etc/fonts). Each configuration file should contain the 4172c393a42Smrgfollowing structure: 418a6844aabSmrg <TABLE 419a6844aabSmrgBORDER="0" 420a6844aabSmrgBGCOLOR="#E0E0E0" 421a6844aabSmrgWIDTH="100%" 422a6844aabSmrg><TR 423a6844aabSmrg><TD 424a6844aabSmrg><PRE 4252c393a42SmrgCLASS="PROGRAMLISTING" 426ae02b298Smrg><?xml version="1.0"?> 427ae02b298Smrg<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd"> 428ae02b298Smrg<fontconfig> 429ae02b298Smrg... 430ae02b298Smrg</fontconfig> 4312c393a42Smrg </PRE 432a6844aabSmrg></TD 433a6844aabSmrg></TR 434a6844aabSmrg></TABLE 4352c393a42Smrg> 4362c393a42Smrg </P 4372c393a42Smrg><DIV 4382c393a42SmrgCLASS="REFSECT2" 4392c393a42Smrg><A 4402c393a42SmrgNAME="AEN58" 4412c393a42Smrg></A 4422c393a42Smrg><H3 4432c393a42Smrg><TT 4442c393a42SmrgCLASS="LITERAL" 445a6844aabSmrg><fontconfig></TT 4462c393a42Smrg></H3 4472c393a42Smrg><P 4482c393a42Smrg>This is the top level element for a font configuration and can contain 4492c393a42Smrg<TT 4502c393a42SmrgCLASS="LITERAL" 451a6844aabSmrg><dir></TT 4522c393a42Smrg>, <TT 4532c393a42SmrgCLASS="LITERAL" 454ca08ab68Smrg><cachedir></TT 4552c393a42Smrg>, <TT 4562c393a42SmrgCLASS="LITERAL" 457a6844aabSmrg><include></TT 4582c393a42Smrg>, <TT 4592c393a42SmrgCLASS="LITERAL" 460a6844aabSmrg><match></TT 4612c393a42Smrg> and <TT 4622c393a42SmrgCLASS="LITERAL" 463a6844aabSmrg><alias></TT 4642c393a42Smrg> elements in any order. 4652c393a42Smrg </P 4662c393a42Smrg></DIV 4672c393a42Smrg><DIV 4682c393a42SmrgCLASS="REFSECT2" 4692c393a42Smrg><A 4702c393a42SmrgNAME="AEN67" 4712c393a42Smrg></A 4722c393a42Smrg><H3 4732c393a42Smrg><TT 4742c393a42SmrgCLASS="LITERAL" 475a4e54154Smrg><dir prefix="default" salt=""></TT 4762c393a42Smrg></H3 4772c393a42Smrg><P 4782c393a42Smrg>This element contains a directory name which will be scanned for font files 479a4e54154Smrgto include in the set of available fonts. 480a4e54154Smrg </P 481a4e54154Smrg><P 482a4e54154Smrg>If 'prefix' is set to "default" or "cwd", the current working directory will be added as the path prefix prior to the value. If 'prefix' is set to "xdg", the value in the XDG_DATA_HOME environment variable will be added as the path prefix. please see XDG Base Directory Specification for more details. If 'prefix' is set to "relative", the path of current file will be added prior to the value. 483a4e54154Smrg </P 484a4e54154Smrg><P 485a4e54154Smrg>'salt' property affects to determine cache filename. this is useful for example when having different fonts sets on same path at container and share fonts from host on different font path. 4862c393a42Smrg </P 4872c393a42Smrg></DIV 4882c393a42Smrg><DIV 4892c393a42SmrgCLASS="REFSECT2" 4902c393a42Smrg><A 491a4e54154SmrgNAME="AEN73" 4922c393a42Smrg></A 4932c393a42Smrg><H3 4942c393a42Smrg><TT 4952c393a42SmrgCLASS="LITERAL" 496ca08ab68Smrg><cachedir prefix="default"></TT 4972c393a42Smrg></H3 4982c393a42Smrg><P 499ca08ab68Smrg>This element contains a directory name that is supposed to be stored or read 500ca08ab68Smrgthe cache of font information. If multiple elements are specified in 501ca08ab68Smrgthe configuration file, the directory that can be accessed first in the list 502ca08ab68Smrgwill be used to store the cache files. If it starts with '~', it refers to 503ca08ab68Smrga directory in the users home directory. If 'prefix' is set to "xdg", the value in the XDG_CACHE_HOME environment variable will be added as the path prefix. please see XDG Base Directory Specification for more details. 504ca08ab68SmrgThe default directory is ``$XDG_CACHE_HOME/fontconfig'' and it contains the cache files 505ca08ab68Smrgnamed ``<TT 5062c393a42SmrgCLASS="LITERAL" 507ca08ab68Smrg><hash value></TT 508ca08ab68Smrg>-<TT 509ca08ab68SmrgCLASS="LITERAL" 510ca08ab68Smrg><architecture></TT 511ca08ab68Smrg>.cache-<TT 512ca08ab68SmrgCLASS="LITERAL" 513953daebaSmrg><version></TT 514ca08ab68Smrg>'', 515ca08ab68Smrgwhere <TT 5162c393a42SmrgCLASS="LITERAL" 517a6844aabSmrg><version></TT 518953daebaSmrg> is the fontconfig cache file 519ae02b298Smrgversion number (currently 8). 5202c393a42Smrg </P 5212c393a42Smrg></DIV 5222c393a42Smrg><DIV 5232c393a42SmrgCLASS="REFSECT2" 5242c393a42Smrg><A 525a4e54154SmrgNAME="AEN81" 5262c393a42Smrg></A 5272c393a42Smrg><H3 5282c393a42Smrg><TT 5292c393a42SmrgCLASS="LITERAL" 530ca08ab68Smrg><include ignore_missing="no" prefix="default"></TT 5312c393a42Smrg></H3 5322c393a42Smrg><P 5332c393a42Smrg>This element contains the name of an additional configuration file or 5342c393a42Smrgdirectory. If a directory, every file within that directory starting with an 5352c393a42SmrgASCII digit (U+0030 - U+0039) and ending with the string ``.conf'' will be processed in sorted order. When 5362c393a42Smrgthe XML datatype is traversed by FcConfigParse, the contents of the file(s) 5372c393a42Smrgwill also be incorporated into the configuration by passing the filename(s) to 5382c393a42SmrgFcConfigLoadAndParse. If 'ignore_missing' is set to "yes" instead of the 5392c393a42Smrgdefault "no", a missing file or directory will elicit no warning message from 540ca08ab68Smrgthe library. If 'prefix' is set to "xdg", the value in the XDG_CONFIG_HOME environment variable will be added as the path prefix. please see XDG Base Directory Specification for more details. 5412c393a42Smrg </P 5422c393a42Smrg></DIV 5432c393a42Smrg><DIV 5442c393a42SmrgCLASS="REFSECT2" 5452c393a42Smrg><A 546a4e54154SmrgNAME="AEN85" 5472c393a42Smrg></A 5482c393a42Smrg><H3 5492c393a42Smrg><TT 5502c393a42SmrgCLASS="LITERAL" 551a6844aabSmrg><config></TT 5522c393a42Smrg></H3 5532c393a42Smrg><P 5542c393a42Smrg>This element provides a place to consolidate additional configuration 5552c393a42Smrginformation. <TT 5562c393a42SmrgCLASS="LITERAL" 557a6844aabSmrg><config></TT 5582c393a42Smrg> can contain <TT 5592c393a42SmrgCLASS="LITERAL" 560a6844aabSmrg><blank></TT 5612c393a42Smrg> and <TT 5622c393a42SmrgCLASS="LITERAL" 563a6844aabSmrg><rescan></TT 5642c393a42Smrg> elements in any 5652c393a42Smrgorder. 5662c393a42Smrg </P 5672c393a42Smrg></DIV 5682c393a42Smrg><DIV 5692c393a42SmrgCLASS="REFSECT2" 5702c393a42Smrg><A 571a4e54154SmrgNAME="AEN92" 572a4e54154Smrg></A 573a4e54154Smrg><H3 574a4e54154Smrg><TT 575a4e54154SmrgCLASS="LITERAL" 576a4e54154Smrg><description domain="fontconfig-conf"></TT 577a4e54154Smrg></H3 578a4e54154Smrg><P 579a4e54154Smrg>This element is supposed to hold strings which describe what a config is used for. 580a4e54154SmrgThis string can be translated through gettext. 'domain' needs to be set the proper name to apply then. 581a4e54154Smrgfontconfig will tries to retrieve translations with 'domain' from gettext. 582a4e54154Smrg </P 583a4e54154Smrg></DIV 584a4e54154Smrg><DIV 585a4e54154SmrgCLASS="REFSECT2" 586a4e54154Smrg><A 587a4e54154SmrgNAME="AEN96" 5882c393a42Smrg></A 5892c393a42Smrg><H3 5902c393a42Smrg><TT 5912c393a42SmrgCLASS="LITERAL" 592a6844aabSmrg><blank></TT 5932c393a42Smrg></H3 5942c393a42Smrg><P 5952c393a42Smrg>Fonts often include "broken" glyphs which appear in the encoding but are 5962c393a42Smrgdrawn as blanks on the screen. Within the <TT 5972c393a42SmrgCLASS="LITERAL" 598a6844aabSmrg><blank></TT 5992c393a42Smrg> element, place each 6002c393a42SmrgUnicode characters which is supposed to be blank in an <TT 6012c393a42SmrgCLASS="LITERAL" 602a6844aabSmrg><int></TT 6032c393a42Smrg> element. 6042c393a42SmrgCharacters outside of this set which are drawn as blank will be elided from 6052c393a42Smrgthe set of characters supported by the font. 6062c393a42Smrg </P 6072c393a42Smrg></DIV 6082c393a42Smrg><DIV 6092c393a42SmrgCLASS="REFSECT2" 6102c393a42Smrg><A 611a4e54154SmrgNAME="AEN102" 612a4e54154Smrg></A 613a4e54154Smrg><H3 614a4e54154Smrg><TT 615a4e54154SmrgCLASS="LITERAL" 616a4e54154Smrg><remap-dir prefix="default" as-path="" salt=""></TT 617a4e54154Smrg></H3 618a4e54154Smrg><P 619a4e54154Smrg>This element contains a directory name where will be mapped 620a4e54154Smrgas the path 'as-path' in cached information. 621a4e54154SmrgThis is useful if the directory name is an alias 622a4e54154Smrg(via a bind mount or symlink) to another directory in the system for 623a4e54154Smrgwhich cached font information is likely to exist. 624a4e54154Smrg </P 625a4e54154Smrg><P 626a4e54154Smrg>'salt' property affects to determine cache filename as same as <TT 627a4e54154SmrgCLASS="LITERAL" 628a4e54154Smrg><dir></TT 629a4e54154Smrg> element. 630a4e54154Smrg </P 631a4e54154Smrg></DIV 632a4e54154Smrg><DIV 633a4e54154SmrgCLASS="REFSECT2" 634a4e54154Smrg><A 635a4e54154SmrgNAME="AEN108" 636a4e54154Smrg></A 637a4e54154Smrg><H3 638a4e54154Smrg><TT 639a4e54154SmrgCLASS="LITERAL" 640a4e54154Smrg><reset-dirs /></TT 641a4e54154Smrg></H3 642a4e54154Smrg><P 643a4e54154Smrg>This element removes all of fonts directories where added by <TT 644a4e54154SmrgCLASS="LITERAL" 645a4e54154Smrg><dir></TT 646a4e54154Smrg> elements. 647a4e54154SmrgThis is useful to override fonts directories from system to own fonts directories only. 648a4e54154Smrg </P 649a4e54154Smrg></DIV 650a4e54154Smrg><DIV 651a4e54154SmrgCLASS="REFSECT2" 652a4e54154Smrg><A 653a4e54154SmrgNAME="AEN113" 6542c393a42Smrg></A 6552c393a42Smrg><H3 6562c393a42Smrg><TT 6572c393a42SmrgCLASS="LITERAL" 658a6844aabSmrg><rescan></TT 6592c393a42Smrg></H3 6602c393a42Smrg><P 6612c393a42Smrg>The <TT 6622c393a42SmrgCLASS="LITERAL" 663a6844aabSmrg><rescan></TT 6642c393a42Smrg> element holds an <TT 6652c393a42SmrgCLASS="LITERAL" 666a6844aabSmrg><int></TT 6672c393a42Smrg> element which indicates the default 6682c393a42Smrginterval between automatic checks for font configuration changes. 6692c393a42SmrgFontconfig will validate all of the configuration files and directories and 6702c393a42Smrgautomatically rebuild the internal datastructures when this interval passes. 6712c393a42Smrg </P 6722c393a42Smrg></DIV 6732c393a42Smrg><DIV 6742c393a42SmrgCLASS="REFSECT2" 6752c393a42Smrg><A 676a4e54154SmrgNAME="AEN119" 6772c393a42Smrg></A 6782c393a42Smrg><H3 6792c393a42Smrg><TT 6802c393a42SmrgCLASS="LITERAL" 681a6844aabSmrg><selectfont></TT 6822c393a42Smrg></H3 6832c393a42Smrg><P 6842c393a42Smrg>This element is used to black/white list fonts from being listed or matched 6852c393a42Smrgagainst. It holds acceptfont and rejectfont elements. 6862c393a42Smrg </P 6872c393a42Smrg></DIV 6882c393a42Smrg><DIV 6892c393a42SmrgCLASS="REFSECT2" 6902c393a42Smrg><A 691a4e54154SmrgNAME="AEN123" 6922c393a42Smrg></A 6932c393a42Smrg><H3 6942c393a42Smrg><TT 6952c393a42SmrgCLASS="LITERAL" 696a6844aabSmrg><acceptfont></TT 6972c393a42Smrg></H3 6982c393a42Smrg><P 6992c393a42Smrg>Fonts matched by an acceptfont element are "whitelisted"; such fonts are 7002c393a42Smrgexplicitly included in the set of fonts used to resolve list and match 7012c393a42Smrgrequests; including them in this list protects them from being "blacklisted" 7022c393a42Smrgby a rejectfont element. Acceptfont elements include glob and pattern 7032c393a42Smrgelements which are used to match fonts. 7042c393a42Smrg </P 7052c393a42Smrg></DIV 7062c393a42Smrg><DIV 7072c393a42SmrgCLASS="REFSECT2" 7082c393a42Smrg><A 709a4e54154SmrgNAME="AEN127" 7102c393a42Smrg></A 7112c393a42Smrg><H3 7122c393a42Smrg><TT 7132c393a42SmrgCLASS="LITERAL" 714a6844aabSmrg><rejectfont></TT 7152c393a42Smrg></H3 7162c393a42Smrg><P 7172c393a42Smrg>Fonts matched by an rejectfont element are "blacklisted"; such fonts are 7182c393a42Smrgexcluded from the set of fonts used to resolve list and match requests as if 7192c393a42Smrgthey didn't exist in the system. Rejectfont elements include glob and 7202c393a42Smrgpattern elements which are used to match fonts. 7212c393a42Smrg </P 7222c393a42Smrg></DIV 7232c393a42Smrg><DIV 7242c393a42SmrgCLASS="REFSECT2" 7252c393a42Smrg><A 726a4e54154SmrgNAME="AEN131" 7272c393a42Smrg></A 7282c393a42Smrg><H3 7292c393a42Smrg><TT 7302c393a42SmrgCLASS="LITERAL" 731a6844aabSmrg><glob></TT 7322c393a42Smrg></H3 7332c393a42Smrg><P 7342c393a42Smrg>Glob elements hold shell-style filename matching patterns (including ? and 735ae02b298Smrg*) which match fonts based on their complete pathnames. If it starts with '~', 736ae02b298Smrgit refers to a directory in the users home directory. This can be used to 7372c393a42Smrgexclude a set of directories (/usr/share/fonts/uglyfont*), or particular 7382c393a42Smrgfont file types (*.pcf.gz), but the latter mechanism relies rather heavily 7392c393a42Smrgon filenaming conventions which can't be relied upon. Note that globs 7402c393a42Smrgonly apply to directories, not to individual fonts. 7412c393a42Smrg </P 7422c393a42Smrg></DIV 7432c393a42Smrg><DIV 7442c393a42SmrgCLASS="REFSECT2" 7452c393a42Smrg><A 746a4e54154SmrgNAME="AEN135" 7472c393a42Smrg></A 7482c393a42Smrg><H3 7492c393a42Smrg><TT 7502c393a42SmrgCLASS="LITERAL" 751a6844aabSmrg><pattern></TT 7522c393a42Smrg></H3 7532c393a42Smrg><P 7542c393a42Smrg>Pattern elements perform list-style matching on incoming fonts; that is, 7552c393a42Smrgthey hold a list of elements and associated values. If all of those 7562c393a42Smrgelements have a matching value, then the pattern matches the font. This can 7572c393a42Smrgbe used to select fonts based on attributes of the font (scalable, bold, 7582c393a42Smrgetc), which is a more reliable mechanism than using file extensions. 7592c393a42SmrgPattern elements include patelt elements. 7602c393a42Smrg </P 7612c393a42Smrg></DIV 7622c393a42Smrg><DIV 7632c393a42SmrgCLASS="REFSECT2" 7642c393a42Smrg><A 765a4e54154SmrgNAME="AEN139" 7662c393a42Smrg></A 7672c393a42Smrg><H3 7682c393a42Smrg><TT 7692c393a42SmrgCLASS="LITERAL" 770a6844aabSmrg><patelt name="property"></TT 7712c393a42Smrg></H3 7722c393a42Smrg><P 7732c393a42Smrg>Patelt elements hold a single pattern element and list of values. They must 7742c393a42Smrghave a 'name' attribute which indicates the pattern element name. Patelt 7752c393a42Smrgelements include int, double, string, matrix, bool, charset and const 7762c393a42Smrgelements. 7772c393a42Smrg </P 7782c393a42Smrg></DIV 7792c393a42Smrg><DIV 7802c393a42SmrgCLASS="REFSECT2" 7812c393a42Smrg><A 782a4e54154SmrgNAME="AEN143" 7832c393a42Smrg></A 7842c393a42Smrg><H3 7852c393a42Smrg><TT 7862c393a42SmrgCLASS="LITERAL" 787a6844aabSmrg><match target="pattern"></TT 7882c393a42Smrg></H3 7892c393a42Smrg><P 7902c393a42Smrg>This element holds first a (possibly empty) list of <TT 7912c393a42SmrgCLASS="LITERAL" 792a6844aabSmrg><test></TT 7932c393a42Smrg> elements and then 7942c393a42Smrga (possibly empty) list of <TT 7952c393a42SmrgCLASS="LITERAL" 796a6844aabSmrg><edit></TT 7972c393a42Smrg> elements. Patterns which match all of the 7982c393a42Smrgtests are subjected to all the edits. If 'target' is set to "font" instead 7992c393a42Smrgof the default "pattern", then this element applies to the font name 8002c393a42Smrgresulting from a match rather than a font pattern to be matched. If 'target' 8012c393a42Smrgis set to "scan", then this element applies when the font is scanned to 8022c393a42Smrgbuild the fontconfig database. 8032c393a42Smrg </P 8042c393a42Smrg></DIV 8052c393a42Smrg><DIV 8062c393a42SmrgCLASS="REFSECT2" 8072c393a42Smrg><A 808a4e54154SmrgNAME="AEN149" 8092c393a42Smrg></A 8102c393a42Smrg><H3 8112c393a42Smrg><TT 8122c393a42SmrgCLASS="LITERAL" 813a6844aabSmrg><test qual="any" name="property" target="default" compare="eq"></TT 8142c393a42Smrg></H3 8152c393a42Smrg><P 8162c393a42Smrg>This element contains a single value which is compared with the target 817ae02b298Smrg('pattern', 'font', 'scan' or 'default') property "property" (substitute any of the property names seen 818ca08ab68Smrgabove). 'compare' can be one of "eq", "not_eq", "less", "less_eq", "more", "more_eq", "contains" or 819ca08ab68Smrg"not_contains". 'qual' may either be the default, "any", in which case the match 8202c393a42Smrgsucceeds if any value associated with the property matches the test value, or 8212c393a42Smrg"all", in which case all of the values associated with the property must 822ca08ab68Smrgmatch the test value. 'ignore-blanks' takes a boolean value. if 'ignore-blanks' is set "true", any blanks in the string will be ignored on its comparison. this takes effects only when compare="eq" or compare="not_eq". 823ca08ab68SmrgWhen used in a <match target="font"> element, 824a6844aabSmrgthe target= attribute in the <test> element selects between matching 8252c393a42Smrgthe original pattern or the font. "default" selects whichever target the 826a6844aabSmrgouter <match> element has selected. 8272c393a42Smrg </P 8282c393a42Smrg></DIV 8292c393a42Smrg><DIV 8302c393a42SmrgCLASS="REFSECT2" 8312c393a42Smrg><A 832a4e54154SmrgNAME="AEN153" 8332c393a42Smrg></A 8342c393a42Smrg><H3 8352c393a42Smrg><TT 8362c393a42SmrgCLASS="LITERAL" 837a6844aabSmrg><edit name="property" mode="assign" binding="weak"></TT 8382c393a42Smrg></H3 8392c393a42Smrg><P 8402c393a42Smrg>This element contains a list of expression elements (any of the value or 8412c393a42Smrgoperator elements). The expression elements are evaluated at run-time and 8422c393a42Smrgmodify the property "property". The modification depends on whether 8432c393a42Smrg"property" was matched by one of the associated <TT 8442c393a42SmrgCLASS="LITERAL" 845a6844aabSmrg><test></TT 8462c393a42Smrg> elements, if so, the 8472c393a42Smrgmodification may affect the first matched value. Any values inserted into 8482c393a42Smrgthe property are given the indicated binding ("strong", "weak" or "same") 8492c393a42Smrgwith "same" binding using the value from the matched pattern element. 8502c393a42Smrg'mode' is one of: 851a6844aabSmrg <TABLE 852a6844aabSmrgBORDER="0" 853a6844aabSmrgBGCOLOR="#E0E0E0" 854a6844aabSmrgWIDTH="100%" 855a6844aabSmrg><TR 856a6844aabSmrg><TD 857a6844aabSmrg><PRE 8582c393a42SmrgCLASS="PROGRAMLISTING" 859ae02b298Smrg>Mode With Match Without Match 860ae02b298Smrg--------------------------------------------------------------------- 861ae02b298Smrg"assign" Replace matching value Replace all values 862ae02b298Smrg"assign_replace" Replace all values Replace all values 863ae02b298Smrg"prepend" Insert before matching Insert at head of list 864ae02b298Smrg"prepend_first" Insert at head of list Insert at head of list 865ae02b298Smrg"append" Append after matching Append at end of list 866ae02b298Smrg"append_last" Append at end of list Append at end of list 867ae02b298Smrg"delete" Delete matching value Delete all values 868ae02b298Smrg"delete_all" Delete all values Delete all values 8692c393a42Smrg </PRE 870a6844aabSmrg></TD 871a6844aabSmrg></TR 872a6844aabSmrg></TABLE 8732c393a42Smrg> 8742c393a42Smrg </P 8752c393a42Smrg></DIV 8762c393a42Smrg><DIV 8772c393a42SmrgCLASS="REFSECT2" 8782c393a42Smrg><A 879a4e54154SmrgNAME="AEN159" 8802c393a42Smrg></A 8812c393a42Smrg><H3 8822c393a42Smrg><TT 8832c393a42SmrgCLASS="LITERAL" 884a6844aabSmrg><int></TT 8852c393a42Smrg>, <TT 8862c393a42SmrgCLASS="LITERAL" 887a6844aabSmrg><double></TT 8882c393a42Smrg>, <TT 8892c393a42SmrgCLASS="LITERAL" 890a6844aabSmrg><string></TT 8912c393a42Smrg>, <TT 8922c393a42SmrgCLASS="LITERAL" 893a6844aabSmrg><bool></TT 8942c393a42Smrg></H3 8952c393a42Smrg><P 8962c393a42Smrg>These elements hold a single value of the indicated type. <TT 8972c393a42SmrgCLASS="LITERAL" 898a6844aabSmrg><bool></TT 8992c393a42Smrg> 9002c393a42Smrgelements hold either true or false. An important limitation exists in 9012c393a42Smrgthe parsing of floating point numbers -- fontconfig requires that 9022c393a42Smrgthe mantissa start with a digit, not a decimal point, so insert a leading 9032c393a42Smrgzero for purely fractional values (e.g. use 0.5 instead of .5 and -0.5 9042c393a42Smrginstead of -.5). 9052c393a42Smrg </P 9062c393a42Smrg></DIV 9072c393a42Smrg><DIV 9082c393a42SmrgCLASS="REFSECT2" 9092c393a42Smrg><A 910a4e54154SmrgNAME="AEN167" 9112c393a42Smrg></A 9122c393a42Smrg><H3 9132c393a42Smrg><TT 9142c393a42SmrgCLASS="LITERAL" 915a6844aabSmrg><matrix></TT 9162c393a42Smrg></H3 9172c393a42Smrg><P 918c9710b42Smrg>This element holds four numerical expressions of an affine transformation. 919c9710b42SmrgAt their simplest these will be four <TT 9202c393a42SmrgCLASS="LITERAL" 921a6844aabSmrg><double></TT 922c9710b42Smrg> elements 923c9710b42Smrgbut they can also be more involved expressions. 9242c393a42Smrg </P 9252c393a42Smrg></DIV 9262c393a42Smrg><DIV 9272c393a42SmrgCLASS="REFSECT2" 9282c393a42Smrg><A 929a4e54154SmrgNAME="AEN172" 930ca08ab68Smrg></A 931ca08ab68Smrg><H3 932ca08ab68Smrg><TT 933ca08ab68SmrgCLASS="LITERAL" 934ca08ab68Smrg><range></TT 935ca08ab68Smrg></H3 936ca08ab68Smrg><P 937ca08ab68Smrg>This element holds the two <TT 938ca08ab68SmrgCLASS="LITERAL" 939ca08ab68Smrg><int></TT 940ca08ab68Smrg> elements of a range 941ca08ab68Smrgrepresentation. 942ca08ab68Smrg </P 943ca08ab68Smrg></DIV 944ca08ab68Smrg><DIV 945ca08ab68SmrgCLASS="REFSECT2" 946ca08ab68Smrg><A 947a4e54154SmrgNAME="AEN177" 948ca08ab68Smrg></A 949ca08ab68Smrg><H3 950ca08ab68Smrg><TT 951ca08ab68SmrgCLASS="LITERAL" 952ca08ab68Smrg><charset></TT 953ca08ab68Smrg></H3 954ca08ab68Smrg><P 955ca08ab68Smrg>This element holds at least one <TT 956ca08ab68SmrgCLASS="LITERAL" 957ca08ab68Smrg><int></TT 958ca08ab68Smrg> element of 959ca08ab68Smrgan Unicode code point or more. 960ca08ab68Smrg </P 961ca08ab68Smrg></DIV 962ca08ab68Smrg><DIV 963ca08ab68SmrgCLASS="REFSECT2" 964ca08ab68Smrg><A 965a4e54154SmrgNAME="AEN182" 966ca08ab68Smrg></A 967ca08ab68Smrg><H3 968ca08ab68Smrg><TT 969ca08ab68SmrgCLASS="LITERAL" 970ca08ab68Smrg><langset></TT 971ca08ab68Smrg></H3 972ca08ab68Smrg><P 973ca08ab68Smrg>This element holds at least one <TT 974ca08ab68SmrgCLASS="LITERAL" 975ca08ab68Smrg><string></TT 976ca08ab68Smrg> element of 977ca08ab68Smrga RFC-3066-style languages or more. 978ca08ab68Smrg </P 979ca08ab68Smrg></DIV 980ca08ab68Smrg><DIV 981ca08ab68SmrgCLASS="REFSECT2" 982ca08ab68Smrg><A 983a4e54154SmrgNAME="AEN187" 9842c393a42Smrg></A 9852c393a42Smrg><H3 9862c393a42Smrg><TT 9872c393a42SmrgCLASS="LITERAL" 988a6844aabSmrg><name></TT 9892c393a42Smrg></H3 9902c393a42Smrg><P 9912c393a42Smrg>Holds a property name. Evaluates to the first value from the property of 992c9710b42Smrgthe pattern. If the 'target' attribute is not present, it will default to 993c9710b42Smrg'default', in which case the property is returned from the font pattern 994c9710b42Smrgduring a target="font" match, and to the pattern during a target="pattern" 995c9710b42Smrgmatch. The attribute can also take the values 'font' or 'pattern' to 996c9710b42Smrgexplicitly choose which pattern to use. It is an error to use a target 997c9710b42Smrgof 'font' in a match that has target="pattern". 9982c393a42Smrg </P 9992c393a42Smrg></DIV 10002c393a42Smrg><DIV 10012c393a42SmrgCLASS="REFSECT2" 10022c393a42Smrg><A 1003a4e54154SmrgNAME="AEN191" 10042c393a42Smrg></A 10052c393a42Smrg><H3 10062c393a42Smrg><TT 10072c393a42SmrgCLASS="LITERAL" 1008a6844aabSmrg><const></TT 10092c393a42Smrg></H3 10102c393a42Smrg><P 10112c393a42Smrg>Holds the name of a constant; these are always integers and serve as 10122c393a42Smrgsymbolic names for common font values: 1013a6844aabSmrg <TABLE 1014a6844aabSmrgBORDER="0" 1015a6844aabSmrgBGCOLOR="#E0E0E0" 1016a6844aabSmrgWIDTH="100%" 1017a6844aabSmrg><TR 1018a6844aabSmrg><TD 1019a6844aabSmrg><PRE 10202c393a42SmrgCLASS="PROGRAMLISTING" 1021ae02b298Smrg>Constant Property Value 1022ae02b298Smrg------------------------------------- 1023ae02b298Smrgthin weight 0 1024ae02b298Smrgextralight weight 40 1025ae02b298Smrgultralight weight 40 1026ae02b298Smrglight weight 50 1027ae02b298Smrgdemilight weight 55 1028ae02b298Smrgsemilight weight 55 1029ae02b298Smrgbook weight 75 1030ae02b298Smrgregular weight 80 1031ae02b298Smrgnormal weight 80 1032ae02b298Smrgmedium weight 100 1033ae02b298Smrgdemibold weight 180 1034ae02b298Smrgsemibold weight 180 1035ae02b298Smrgbold weight 200 1036ae02b298Smrgextrabold weight 205 1037ae02b298Smrgultrabold weight 205 1038ae02b298Smrgblack weight 210 1039ae02b298Smrgheavy weight 210 1040ae02b298Smrgextrablack weight 215 1041ae02b298Smrgultrablack weight 215 1042ae02b298Smrgroman slant 0 1043ae02b298Smrgitalic slant 100 1044ae02b298Smrgoblique slant 110 1045ae02b298Smrgultracondensed width 50 1046ae02b298Smrgextracondensed width 63 1047ae02b298Smrgcondensed width 75 1048ae02b298Smrgsemicondensed width 87 1049ae02b298Smrgnormal width 100 1050ae02b298Smrgsemiexpanded width 113 1051ae02b298Smrgexpanded width 125 1052ae02b298Smrgextraexpanded width 150 1053ae02b298Smrgultraexpanded width 200 1054ae02b298Smrgproportional spacing 0 1055ae02b298Smrgdual spacing 90 1056ae02b298Smrgmono spacing 100 1057ae02b298Smrgcharcell spacing 110 1058ae02b298Smrgunknown rgba 0 1059ae02b298Smrgrgb rgba 1 1060ae02b298Smrgbgr rgba 2 1061ae02b298Smrgvrgb rgba 3 1062ae02b298Smrgvbgr rgba 4 1063ae02b298Smrgnone rgba 5 1064ae02b298Smrglcdnone lcdfilter 0 1065ae02b298Smrglcddefault lcdfilter 1 1066ae02b298Smrglcdlight lcdfilter 2 1067ae02b298Smrglcdlegacy lcdfilter 3 1068ae02b298Smrghintnone hintstyle 0 1069ae02b298Smrghintslight hintstyle 1 1070ae02b298Smrghintmedium hintstyle 2 1071ae02b298Smrghintfull hintstyle 3 10722c393a42Smrg </PRE 1073a6844aabSmrg></TD 1074a6844aabSmrg></TR 1075a6844aabSmrg></TABLE 10762c393a42Smrg> 10772c393a42Smrg </P 10782c393a42Smrg></DIV 10792c393a42Smrg><DIV 10802c393a42SmrgCLASS="REFSECT2" 10812c393a42Smrg><A 1082a4e54154SmrgNAME="AEN196" 10832c393a42Smrg></A 10842c393a42Smrg><H3 10852c393a42Smrg><TT 10862c393a42SmrgCLASS="LITERAL" 1087a6844aabSmrg><or></TT 10882c393a42Smrg>, <TT 10892c393a42SmrgCLASS="LITERAL" 1090a6844aabSmrg><and></TT 10912c393a42Smrg>, <TT 10922c393a42SmrgCLASS="LITERAL" 1093a6844aabSmrg><plus></TT 10942c393a42Smrg>, <TT 10952c393a42SmrgCLASS="LITERAL" 1096a6844aabSmrg><minus></TT 10972c393a42Smrg>, <TT 10982c393a42SmrgCLASS="LITERAL" 1099a6844aabSmrg><times></TT 11002c393a42Smrg>, <TT 11012c393a42SmrgCLASS="LITERAL" 1102a6844aabSmrg><divide></TT 11032c393a42Smrg></H3 11042c393a42Smrg><P 11052c393a42Smrg>These elements perform the specified operation on a list of expression 11062c393a42Smrgelements. <TT 11072c393a42SmrgCLASS="LITERAL" 1108a6844aabSmrg><or></TT 11092c393a42Smrg> and <TT 11102c393a42SmrgCLASS="LITERAL" 1111a6844aabSmrg><and></TT 11122c393a42Smrg> are boolean, not bitwise. 11132c393a42Smrg </P 11142c393a42Smrg></DIV 11152c393a42Smrg><DIV 11162c393a42SmrgCLASS="REFSECT2" 11172c393a42Smrg><A 1118a4e54154SmrgNAME="AEN207" 11192c393a42Smrg></A 11202c393a42Smrg><H3 11212c393a42Smrg><TT 11222c393a42SmrgCLASS="LITERAL" 1123a6844aabSmrg><eq></TT 11242c393a42Smrg>, <TT 11252c393a42SmrgCLASS="LITERAL" 1126a6844aabSmrg><not_eq></TT 11272c393a42Smrg>, <TT 11282c393a42SmrgCLASS="LITERAL" 1129a6844aabSmrg><less></TT 11302c393a42Smrg>, <TT 11312c393a42SmrgCLASS="LITERAL" 1132a6844aabSmrg><less_eq></TT 11332c393a42Smrg>, <TT 11342c393a42SmrgCLASS="LITERAL" 1135a6844aabSmrg><more></TT 11362c393a42Smrg>, <TT 11372c393a42SmrgCLASS="LITERAL" 1138a6844aabSmrg><more_eq></TT 1139ca08ab68Smrg>, <TT 1140ca08ab68SmrgCLASS="LITERAL" 1141ca08ab68Smrg><contains></TT 1142ca08ab68Smrg>, <TT 1143ca08ab68SmrgCLASS="LITERAL" 1144ca08ab68Smrg><not_contains</TT 11452c393a42Smrg></H3 11462c393a42Smrg><P 11472c393a42Smrg>These elements compare two values, producing a boolean result. 11482c393a42Smrg </P 11492c393a42Smrg></DIV 11502c393a42Smrg><DIV 11512c393a42SmrgCLASS="REFSECT2" 11522c393a42Smrg><A 1153a4e54154SmrgNAME="AEN218" 11542c393a42Smrg></A 11552c393a42Smrg><H3 11562c393a42Smrg><TT 11572c393a42SmrgCLASS="LITERAL" 1158a6844aabSmrg><not></TT 11592c393a42Smrg></H3 11602c393a42Smrg><P 11612c393a42Smrg>Inverts the boolean sense of its one expression element 11622c393a42Smrg </P 11632c393a42Smrg></DIV 11642c393a42Smrg><DIV 11652c393a42SmrgCLASS="REFSECT2" 11662c393a42Smrg><A 1167a4e54154SmrgNAME="AEN222" 11682c393a42Smrg></A 11692c393a42Smrg><H3 11702c393a42Smrg><TT 11712c393a42SmrgCLASS="LITERAL" 1172a6844aabSmrg><if></TT 11732c393a42Smrg></H3 11742c393a42Smrg><P 11752c393a42Smrg>This element takes three expression elements; if the value of the first is 11762c393a42Smrgtrue, it produces the value of the second, otherwise it produces the value 11772c393a42Smrgof the third. 11782c393a42Smrg </P 11792c393a42Smrg></DIV 11802c393a42Smrg><DIV 11812c393a42SmrgCLASS="REFSECT2" 11822c393a42Smrg><A 1183a4e54154SmrgNAME="AEN226" 11842c393a42Smrg></A 11852c393a42Smrg><H3 11862c393a42Smrg><TT 11872c393a42SmrgCLASS="LITERAL" 1188a6844aabSmrg><alias></TT 11892c393a42Smrg></H3 11902c393a42Smrg><P 11912c393a42Smrg>Alias elements provide a shorthand notation for the set of common match 11922c393a42Smrgoperations needed to substitute one font family for another. They contain a 11932c393a42Smrg<TT 11942c393a42SmrgCLASS="LITERAL" 1195a6844aabSmrg><family></TT 11962c393a42Smrg> element followed by optional <TT 11972c393a42SmrgCLASS="LITERAL" 1198a6844aabSmrg><prefer></TT 11992c393a42Smrg>, <TT 12002c393a42SmrgCLASS="LITERAL" 1201a6844aabSmrg><accept></TT 12022c393a42Smrg> and <TT 12032c393a42SmrgCLASS="LITERAL" 1204a6844aabSmrg><default></TT 12052c393a42Smrg> 12062c393a42Smrgelements. Fonts matching the <TT 12072c393a42SmrgCLASS="LITERAL" 1208a6844aabSmrg><family></TT 12092c393a42Smrg> element are edited to prepend the 12102c393a42Smrglist of <TT 12112c393a42SmrgCLASS="LITERAL" 1212a6844aabSmrg><prefer></TT 12132c393a42Smrg>ed families before the matching <TT 12142c393a42SmrgCLASS="LITERAL" 1215a6844aabSmrg><family></TT 12162c393a42Smrg>, append the 12172c393a42Smrg<TT 12182c393a42SmrgCLASS="LITERAL" 1219a6844aabSmrg><accept></TT 12202c393a42Smrg>able families after the matching <TT 12212c393a42SmrgCLASS="LITERAL" 1222a6844aabSmrg><family></TT 12232c393a42Smrg> and append the <TT 12242c393a42SmrgCLASS="LITERAL" 1225a6844aabSmrg><default></TT 12262c393a42Smrg> 12272c393a42Smrgfamilies to the end of the family list. 12282c393a42Smrg </P 12292c393a42Smrg></DIV 12302c393a42Smrg><DIV 12312c393a42SmrgCLASS="REFSECT2" 12322c393a42Smrg><A 1233a4e54154SmrgNAME="AEN240" 12342c393a42Smrg></A 12352c393a42Smrg><H3 12362c393a42Smrg><TT 12372c393a42SmrgCLASS="LITERAL" 1238a6844aabSmrg><family></TT 12392c393a42Smrg></H3 12402c393a42Smrg><P 12412c393a42Smrg>Holds a single font family name 12422c393a42Smrg </P 12432c393a42Smrg></DIV 12442c393a42Smrg><DIV 12452c393a42SmrgCLASS="REFSECT2" 12462c393a42Smrg><A 1247a4e54154SmrgNAME="AEN244" 12482c393a42Smrg></A 12492c393a42Smrg><H3 12502c393a42Smrg><TT 12512c393a42SmrgCLASS="LITERAL" 1252a6844aabSmrg><prefer></TT 12532c393a42Smrg>, <TT 12542c393a42SmrgCLASS="LITERAL" 1255a6844aabSmrg><accept></TT 12562c393a42Smrg>, <TT 12572c393a42SmrgCLASS="LITERAL" 1258a6844aabSmrg><default></TT 12592c393a42Smrg></H3 12602c393a42Smrg><P 12612c393a42Smrg>These hold a list of <TT 12622c393a42SmrgCLASS="LITERAL" 1263a6844aabSmrg><family></TT 12642c393a42Smrg> elements to be used by the <TT 12652c393a42SmrgCLASS="LITERAL" 1266a6844aabSmrg><alias></TT 12672c393a42Smrg> element. 12682c393a42Smrg </P 12692c393a42Smrg></DIV 12702c393a42Smrg></DIV 12712c393a42Smrg><DIV 12722c393a42SmrgCLASS="REFSECT1" 12732c393a42Smrg><A 1274a4e54154SmrgNAME="AEN252" 12752c393a42Smrg></A 12762c393a42Smrg><H2 12772c393a42Smrg>EXAMPLE CONFIGURATION FILE</H2 12782c393a42Smrg><DIV 12792c393a42SmrgCLASS="REFSECT2" 12802c393a42Smrg><A 1281a4e54154SmrgNAME="AEN254" 12822c393a42Smrg></A 12832c393a42Smrg><H3 12842c393a42Smrg>System configuration file</H3 12852c393a42Smrg><P 12862c393a42Smrg>This is an example of a system-wide configuration file 12872c393a42Smrg </P 1288a6844aabSmrg><TABLE 1289a6844aabSmrgBORDER="0" 1290a6844aabSmrgBGCOLOR="#E0E0E0" 1291a6844aabSmrgWIDTH="100%" 1292a6844aabSmrg><TR 1293a6844aabSmrg><TD 12942c393a42Smrg><PRE 12952c393a42SmrgCLASS="PROGRAMLISTING" 1296a6844aabSmrg><?xml version="1.0"?> 1297a4e54154Smrg<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd"> 1298a6844aabSmrg<!-- /etc/fonts/fonts.conf file to configure system font access --> 1299a6844aabSmrg<fontconfig> 1300ae02b298Smrg <!-- 1301ae02b298Smrg Find fonts in these directories 1302ae02b298Smrg --> 1303ae02b298Smrg <dir>/usr/share/fonts</dir> 1304ae02b298Smrg <dir>/usr/X11R6/lib/X11/fonts</dir> 13052c393a42Smrg 1306ae02b298Smrg <!-- 1307ae02b298Smrg Accept deprecated 'mono' alias, replacing it with 'monospace' 1308ae02b298Smrg --> 1309ae02b298Smrg <match target="pattern"> 1310ae02b298Smrg <test qual="any" name="family"> 1311ae02b298Smrg <string>mono</string> 1312ae02b298Smrg </test> 1313ae02b298Smrg <edit name="family" mode="assign"> 1314ae02b298Smrg <string>monospace</string> 1315ae02b298Smrg </edit> 1316ae02b298Smrg </match> 13172c393a42Smrg 1318ae02b298Smrg <!-- 1319ae02b298Smrg Names not including any well known alias are given 'sans-serif' 1320ae02b298Smrg --> 1321ae02b298Smrg <match target="pattern"> 1322ae02b298Smrg <test qual="all" name="family" compare="not_eq"> 1323ae02b298Smrg <string>sans-serif</string> 1324ae02b298Smrg </test> 1325ae02b298Smrg <test qual="all" name="family" compare="not_eq"> 1326ae02b298Smrg <string>serif</string> 1327ae02b298Smrg </test> 1328ae02b298Smrg <test qual="all" name="family" compare="not_eq"> 1329ae02b298Smrg <string>monospace</string> 1330ae02b298Smrg </test> 1331ae02b298Smrg <edit name="family" mode="append_last"> 1332ae02b298Smrg <string>sans-serif</string> 1333ae02b298Smrg </edit> 1334ae02b298Smrg </match> 13352c393a42Smrg 1336ae02b298Smrg <!-- 1337ae02b298Smrg Load per-user customization file, but don't complain 1338ae02b298Smrg if it doesn't exist 1339ae02b298Smrg --> 1340ae02b298Smrg <include ignore_missing="yes" prefix="xdg"> 1341ae02b298Smrg fontconfig/fonts.conf 1342ae02b298Smrg </include> 13432c393a42Smrg 1344ae02b298Smrg <!-- 1345ae02b298Smrg Load local customization files, but don't complain 1346ae02b298Smrg if there aren't any 1347ae02b298Smrg --> 1348ae02b298Smrg <include ignore_missing="yes">conf.d</include> 1349ae02b298Smrg <include ignore_missing="yes">local.conf</include> 13502c393a42Smrg 1351ae02b298Smrg <!-- 1352ae02b298Smrg Alias well known font names to available TrueType fonts. 1353ae02b298Smrg These substitute TrueType faces for similar Type1 1354ae02b298Smrg faces to improve screen appearance. 1355ae02b298Smrg --> 1356ae02b298Smrg <alias> 1357ae02b298Smrg <family>Times</family> 1358ae02b298Smrg <prefer> 1359ae02b298Smrg <family>Times New Roman</family> 1360ae02b298Smrg </prefer> 1361ae02b298Smrg <default> 1362ae02b298Smrg <family>serif</family> 1363ae02b298Smrg </default> 1364ae02b298Smrg </alias> 1365ae02b298Smrg <alias> 1366ae02b298Smrg <family>Helvetica</family> 1367ae02b298Smrg <prefer> 1368ae02b298Smrg <family>Arial</family> 1369ae02b298Smrg </prefer> 1370ae02b298Smrg <default> 1371ae02b298Smrg <family>sans</family> 1372ae02b298Smrg </default> 1373ae02b298Smrg </alias> 1374ae02b298Smrg <alias> 1375ae02b298Smrg <family>Courier</family> 1376ae02b298Smrg <prefer> 1377ae02b298Smrg <family>Courier New</family> 1378ae02b298Smrg </prefer> 1379ae02b298Smrg <default> 1380ae02b298Smrg <family>monospace</family> 1381ae02b298Smrg </default> 1382ae02b298Smrg </alias> 13832c393a42Smrg 1384ae02b298Smrg <!-- 1385ae02b298Smrg Provide required aliases for standard names 1386ae02b298Smrg Do these after the users configuration file so that 1387ae02b298Smrg any aliases there are used preferentially 1388ae02b298Smrg --> 1389ae02b298Smrg <alias> 1390ae02b298Smrg <family>serif</family> 1391ae02b298Smrg <prefer> 1392ae02b298Smrg <family>Times New Roman</family> 1393ae02b298Smrg </prefer> 1394ae02b298Smrg </alias> 1395ae02b298Smrg <alias> 1396ae02b298Smrg <family>sans</family> 1397ae02b298Smrg <prefer> 1398ae02b298Smrg <family>Arial</family> 1399ae02b298Smrg </prefer> 1400ae02b298Smrg </alias> 1401ae02b298Smrg <alias> 1402ae02b298Smrg <family>monospace</family> 1403ae02b298Smrg <prefer> 1404ae02b298Smrg <family>Andale Mono</family> 1405ae02b298Smrg </prefer> 1406ae02b298Smrg </alias> 1407ca08ab68Smrg 1408ae02b298Smrg <-- 1409ae02b298Smrg The example of the requirements of OR operator; 1410ae02b298Smrg If the 'family' contains 'Courier New' OR 'Courier' 1411ae02b298Smrg add 'monospace' as the alternative 1412ae02b298Smrg --> 1413ae02b298Smrg <match target="pattern"> 1414ae02b298Smrg <test name="family" compare="eq"> 1415ae02b298Smrg <string>Courier New</string> 1416ae02b298Smrg </test> 1417ae02b298Smrg <edit name="family" mode="prepend"> 1418ae02b298Smrg <string>monospace</string> 1419ae02b298Smrg </edit> 1420ae02b298Smrg </match> 1421ae02b298Smrg <match target="pattern"> 1422ae02b298Smrg <test name="family" compare="eq"> 1423ae02b298Smrg <string>Courier</string> 1424ae02b298Smrg </test> 1425ae02b298Smrg <edit name="family" mode="prepend"> 1426ae02b298Smrg <string>monospace</string> 1427ae02b298Smrg </edit> 1428ae02b298Smrg </match> 1429ca08ab68Smrg 1430a6844aabSmrg</fontconfig> 14312c393a42Smrg </PRE 1432a6844aabSmrg></TD 1433a6844aabSmrg></TR 1434a6844aabSmrg></TABLE 14352c393a42Smrg></DIV 14362c393a42Smrg><DIV 14372c393a42SmrgCLASS="REFSECT2" 14382c393a42Smrg><A 1439a4e54154SmrgNAME="AEN258" 14402c393a42Smrg></A 14412c393a42Smrg><H3 14422c393a42Smrg>User configuration file</H3 14432c393a42Smrg><P 14442c393a42Smrg>This is an example of a per-user configuration file that lives in 1445ca08ab68Smrg$XDG_CONFIG_HOME/fontconfig/fonts.conf 14462c393a42Smrg </P 1447a6844aabSmrg><TABLE 1448a6844aabSmrgBORDER="0" 1449a6844aabSmrgBGCOLOR="#E0E0E0" 1450a6844aabSmrgWIDTH="100%" 1451a6844aabSmrg><TR 1452a6844aabSmrg><TD 14532c393a42Smrg><PRE 14542c393a42SmrgCLASS="PROGRAMLISTING" 1455a6844aabSmrg><?xml version="1.0"?> 1456a4e54154Smrg<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd"> 1457a6844aabSmrg<!-- 1458ae02b298Smrg $XDG_CONFIG_HOME/fontconfig/fonts.conf for per-user font configuration 1459a6844aabSmrg--> 1460ae02b298Smrg<fontconfig> 14612c393a42Smrg 1462ae02b298Smrg <!-- 1463ae02b298Smrg Private font directory 1464ae02b298Smrg --> 1465ae02b298Smrg <dir prefix="xdg">fonts</dir> 1466ae02b298Smrg 1467ae02b298Smrg <!-- 1468ae02b298Smrg use rgb sub-pixel ordering to improve glyph appearance on 1469ae02b298Smrg LCD screens. Changes affecting rendering, but not matching 1470ae02b298Smrg should always use target="font". 1471ae02b298Smrg --> 1472ae02b298Smrg <match target="font"> 1473ae02b298Smrg <edit name="rgba" mode="assign"> 1474ae02b298Smrg <const>rgb</const> 1475ae02b298Smrg </edit> 1476ae02b298Smrg </match> 1477ae02b298Smrg <!-- 1478ae02b298Smrg use WenQuanYi Zen Hei font when serif is requested for Chinese 1479ae02b298Smrg --> 1480ae02b298Smrg <match> 1481ae02b298Smrg <!-- 1482ae02b298Smrg If you don't want to use WenQuanYi Zen Hei font for zh-tw etc, 1483ae02b298Smrg you can use zh-cn instead of zh. 1484ae02b298Smrg Please note, even if you set zh-cn, it still matches zh. 1485ae02b298Smrg if you don't like it, you can use compare="eq" 1486ae02b298Smrg instead of compare="contains". 1487ae02b298Smrg --> 1488ae02b298Smrg <test name="lang" compare="contains"> 1489ae02b298Smrg <string>zh</string> 1490ae02b298Smrg </test> 1491ae02b298Smrg <test name="family"> 1492ae02b298Smrg <string>serif</string> 1493ae02b298Smrg </test> 1494ae02b298Smrg <edit name="family" mode="prepend"> 1495ae02b298Smrg <string>WenQuanYi Zen Hei</string> 1496ae02b298Smrg </edit> 1497ae02b298Smrg </match> 1498ae02b298Smrg <!-- 1499ae02b298Smrg use VL Gothic font when sans-serif is requested for Japanese 1500ae02b298Smrg --> 1501ae02b298Smrg <match> 1502ae02b298Smrg <test name="lang" compare="contains"> 1503ae02b298Smrg <string>ja</string> 1504ae02b298Smrg </test> 1505ae02b298Smrg <test name="family"> 1506ae02b298Smrg <string>sans-serif</string> 1507ae02b298Smrg </test> 1508ae02b298Smrg <edit name="family" mode="prepend"> 1509ae02b298Smrg <string>VL Gothic</string> 1510ae02b298Smrg </edit> 1511ae02b298Smrg </match> 1512a6844aabSmrg</fontconfig> 15132c393a42Smrg </PRE 1514a6844aabSmrg></TD 1515a6844aabSmrg></TR 1516a6844aabSmrg></TABLE 15172c393a42Smrg></DIV 15182c393a42Smrg></DIV 15192c393a42Smrg><DIV 15202c393a42SmrgCLASS="REFSECT1" 15212c393a42Smrg><A 1522a4e54154SmrgNAME="AEN262" 15232c393a42Smrg></A 15242c393a42Smrg><H2 15252c393a42Smrg>Files</H2 15262c393a42Smrg><P 15272c393a42Smrg><I 15282c393a42SmrgCLASS="EMPHASIS" 15292c393a42Smrg>fonts.conf</I 15302c393a42Smrg> 15312c393a42Smrgcontains configuration information for the fontconfig library 15322c393a42Smrgconsisting of directories to look at for font information as well as 15332c393a42Smrginstructions on editing program specified font patterns before attempting to 1534ca08ab68Smrgmatch the available fonts. It is in XML format. 15352c393a42Smrg </P 15362c393a42Smrg><P 15372c393a42Smrg><I 15382c393a42SmrgCLASS="EMPHASIS" 15392c393a42Smrg>conf.d</I 15402c393a42Smrg> 15412c393a42Smrgis the conventional name for a directory of additional configuration files 15422c393a42Smrgmanaged by external applications or the local administrator. The 15432c393a42Smrgfilenames starting with decimal digits are sorted in lexicographic order 1544ca08ab68Smrgand used as additional configuration files. All of these files are in XML 1545ae02b298Smrgformat. The master fonts.conf file references this directory in an 1546a6844aabSmrg<include> directive. 15472c393a42Smrg </P 15482c393a42Smrg><P 15492c393a42Smrg><I 15502c393a42SmrgCLASS="EMPHASIS" 15512c393a42Smrg>fonts.dtd</I 15522c393a42Smrg> 15532c393a42Smrgis a DTD that describes the format of the configuration files. 15542c393a42Smrg </P 15552c393a42Smrg><P 1556a6844aabSmrg><I 1557a6844aabSmrgCLASS="EMPHASIS" 1558ca08ab68Smrg>$XDG_CONFIG_HOME/fontconfig/conf.d</I 1559ca08ab68Smrg> and <I 1560ca08ab68SmrgCLASS="EMPHASIS" 1561a6844aabSmrg>~/.fonts.conf.d</I 1562a6844aabSmrg> 1563a6844aabSmrgis the conventional name for a per-user directory of (typically 1564a6844aabSmrgauto-generated) configuration files, although the 1565ca08ab68Smrgactual location is specified in the global fonts.conf file. please note that ~/.fonts.conf.d is deprecated now. it will not be read by default in the future version. 1566a6844aabSmrg </P 1567a6844aabSmrg><P 15682c393a42Smrg><I 15692c393a42SmrgCLASS="EMPHASIS" 1570ca08ab68Smrg>$XDG_CONFIG_HOME/fontconfig/fonts.conf</I 1571ca08ab68Smrg> and <I 1572ca08ab68SmrgCLASS="EMPHASIS" 15732c393a42Smrg>~/.fonts.conf</I 15742c393a42Smrg> 15752c393a42Smrgis the conventional location for per-user font configuration, although the 1576ca08ab68Smrgactual location is specified in the global fonts.conf file. please note that ~/.fonts.conf is deprecated now. it will not be read by default in the future version. 15772c393a42Smrg </P 15782c393a42Smrg><P 15792c393a42Smrg><I 15802c393a42SmrgCLASS="EMPHASIS" 1581ca08ab68Smrg>$XDG_CACHE_HOME/fontconfig/*.cache-*</I 1582ca08ab68Smrg> and <I 1583ca08ab68SmrgCLASS="EMPHASIS" 1584ca08ab68Smrg> ~/.fontconfig/*.cache-*</I 15852c393a42Smrg> 15862c393a42Smrgis the conventional repository of font information that isn't found in the 1587ca08ab68Smrgper-directory caches. This file is automatically maintained by fontconfig. please note that ~/.fontconfig/*.cache-* is deprecated now. it will not be read by default in the future version. 1588ca08ab68Smrg </P 1589ca08ab68Smrg></DIV 1590ca08ab68Smrg><DIV 1591ca08ab68SmrgCLASS="REFSECT1" 1592ca08ab68Smrg><A 1593a4e54154SmrgNAME="AEN279" 1594ca08ab68Smrg></A 1595ca08ab68Smrg><H2 1596ca08ab68Smrg>Environment variables</H2 1597ca08ab68Smrg><P 1598ca08ab68Smrg><I 1599ca08ab68SmrgCLASS="EMPHASIS" 1600ca08ab68Smrg>FONTCONFIG_FILE</I 1601ca08ab68Smrg> 1602ca08ab68Smrgis used to override the default configuration file. 1603ca08ab68Smrg </P 1604ca08ab68Smrg><P 1605ca08ab68Smrg><I 1606ca08ab68SmrgCLASS="EMPHASIS" 1607ca08ab68Smrg>FONTCONFIG_PATH</I 1608ca08ab68Smrg> 1609ca08ab68Smrgis used to override the default configuration directory. 1610ca08ab68Smrg </P 1611ca08ab68Smrg><P 1612ca08ab68Smrg><I 1613ca08ab68SmrgCLASS="EMPHASIS" 1614a32e9e42Smrg>FONTCONFIG_SYSROOT</I 1615a32e9e42Smrg> 1616a32e9e42Smrgis used to set a default sysroot directory. 1617a32e9e42Smrg </P 1618a32e9e42Smrg><P 1619a32e9e42Smrg><I 1620a32e9e42SmrgCLASS="EMPHASIS" 1621ca08ab68Smrg>FC_DEBUG</I 1622ca08ab68Smrg> 1623ca08ab68Smrgis used to output the detailed debugging messages. see <A 1624ca08ab68SmrgHREF="#DEBUG" 1625ca08ab68Smrg>Debugging Applications</A 1626ca08ab68Smrg> section for more details. 1627ca08ab68Smrg </P 1628ca08ab68Smrg><P 1629ca08ab68Smrg><I 1630ca08ab68SmrgCLASS="EMPHASIS" 1631953daebaSmrg>FC_DBG_MATCH_FILTER</I 1632953daebaSmrg> 1633953daebaSmrgis used to filter out the patterns. this takes a comma-separated list of object names and effects only when FC_DEBUG has MATCH2. see <A 1634953daebaSmrgHREF="#DEBUG" 1635953daebaSmrg>Debugging Applications</A 1636953daebaSmrg> section for more details. 1637953daebaSmrg </P 1638953daebaSmrg><P 1639953daebaSmrg><I 1640953daebaSmrgCLASS="EMPHASIS" 1641953daebaSmrg>FC_LANG</I 1642953daebaSmrg> 1643953daebaSmrgis used to specify the default language as the weak binding in the query. if this isn't set, the default language will be determined from current locale. 1644953daebaSmrg </P 1645953daebaSmrg><P 1646953daebaSmrg><I 1647953daebaSmrgCLASS="EMPHASIS" 1648ca08ab68Smrg>FONTCONFIG_USE_MMAP</I 1649ca08ab68Smrg> 1650ca08ab68Smrgis used to control the use of mmap(2) for the cache files if available. this take a boolean value. fontconfig will checks if the cache files are stored on the filesystem that is safe to use mmap(2). explicitly setting this environment variable will causes skipping this check and enforce to use or not use mmap(2) anyway. 16512c393a42Smrg </P 1652a32e9e42Smrg><P 1653a32e9e42Smrg><I 1654a32e9e42SmrgCLASS="EMPHASIS" 1655a32e9e42Smrg>SOURCE_DATE_EPOCH</I 1656a32e9e42Smrg> 1657a32e9e42Smrgis used to ensure <TT 1658a32e9e42SmrgCLASS="LITERAL" 1659a32e9e42Smrg>fc-cache(1)</TT 1660a32e9e42Smrg> generates files in a deterministic manner in order to support reproducible builds. When set to a numeric representation of UNIX timestamp, fontconfig will prefer this value over using the modification timestamps of the input files in order to identify which cache files require regeneration. If <TT 1661a32e9e42SmrgCLASS="LITERAL" 1662a32e9e42Smrg>SOURCE_DATE_EPOCH</TT 1663a32e9e42Smrg> is not set (or is newer than the mtime of the directory), the existing behaviour is unchanged. 1664a32e9e42Smrg </P 16652c393a42Smrg></DIV 16662c393a42Smrg><DIV 16672c393a42SmrgCLASS="REFSECT1" 16682c393a42Smrg><A 1669a4e54154SmrgNAME="AEN301" 16702c393a42Smrg></A 16712c393a42Smrg><H2 16722c393a42Smrg>See Also</H2 16732c393a42Smrg><P 1674a32e9e42Smrg>fc-cat(1), fc-cache(1), fc-list(1), fc-match(1), fc-query(1), <A 1675a32e9e42SmrgHREF="https://reproducible-builds.org/specs/source-date-epoch/" 1676a32e9e42SmrgTARGET="_top" 1677a32e9e42Smrg>SOURCE_DATE_EPOCH</A 1678a32e9e42Smrg>. 16792c393a42Smrg </P 16802c393a42Smrg></DIV 16812c393a42Smrg><DIV 16822c393a42SmrgCLASS="REFSECT1" 16832c393a42Smrg><A 1684a4e54154SmrgNAME="AEN305" 16852c393a42Smrg></A 16862c393a42Smrg><H2 16872c393a42Smrg>Version</H2 16882c393a42Smrg><P 1689ae02b298Smrg>Fontconfig version 2.15.0 16902c393a42Smrg 1691ae02b298Smrg </P 16922c393a42Smrg></DIV 16932c393a42Smrg></BODY 16942c393a42Smrg></HTML 16952c393a42Smrg>