Changeset 8251b48
- Timestamp:
- 08/30/2023 12:58:02 AM (9 months ago)
- Branches:
- 12.0, 12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18
- Children:
- fcf7e13
- Parents:
- a41ab12f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
x/installing/tuning-fontconfig.xml
ra41ab12f r8251b48 49 49 <xref linkend="rxvt-unicode"/> which can use fonts listed in 50 50 <filename>~/.Xresources</filename>, and <xref linkend="abiword"/> which 51 only uses the specified font). 51 only uses the specified font). The default search path is <filename 52 52 class="directory">/usr/share/fonts</filename> and <filename 53 class="directory">~/.local/share/fonts</filename> although for the moment53 class="directory">~/.local/share/fonts</filename>, although for the moment 54 54 the old and deprecated location <filename 55 55 class="directory">~/.fonts</filename> still works. 56 56 <application>Fontconfig</application> searches directories in its path 57 57 recursively and maintains a cache of the font characteristics in each 58 directory. 58 directory. If the cache appears to be out of date, it is ignored, and 59 59 information is fetched from the fonts themselves (that can take a few 60 seconds if you installed a lot of fonts).60 seconds if you have a lot of fonts installed). 61 61 </para> 62 62 … … 94 94 95 95 <para> 96 <command>fc-list | less</command> : show a list of all available fonts96 <command>fc-list | less</command> : shows a list of all available fonts 97 97 (/path/to/filename: Font Name:style). If you installed a font more than 98 98 30 seconds ago but it does not show, then it or one of its directories is … … 101 101 102 102 <para> 103 <command>fc-match 'Font Name'</command> : will tellyou which font will103 <command>fc-match 'Font Name'</command> : tells you which font will 104 104 be used if the named font is requested. Typically you would use this to 105 105 see what happens if a font you have not installed is requested, but you 106 106 can also use it if the system is giving you a different font from 107 107 what you expected (perhaps because <application>fontconfig</application> 108 does not agreethat the font supports your language).109 </para> 110 111 <para> 112 <command>fc-match -a 'Type' | less</command> : will providea list of all108 does not think that the font supports your language). 109 </para> 110 111 <para> 112 <command>fc-match -a 'Type' | less</command> : provides a list of all 113 113 fonts which can be used for that type (Monospace, Sans, Serif). Note that 114 114 in-extremis <application>fontconfig</application> will take a glyph from … … 161 161 <listitem> 162 162 <para> 163 10-19 system rendering defaults ( antialiasing etc)163 10-19 system rendering defaults (such as antialiasing) 164 164 </para> 165 165 </listitem> … … 208 208 <para> 209 209 You can also have a personal <filename>fonts.conf</filename> in 210 $XDG_CONFIG_HOME which is <filename211 class="directory">~/.config/fontconfig/</filename> .210 $XDG_CONFIG_HOME (which is <filename 211 class="directory">~/.config/fontconfig/</filename>). 212 212 </para> 213 213 … … 225 225 226 226 <para> 227 Butif the document or page requested a font which is not installed227 However, if the document or page requested a font which is not installed 228 228 (or, occasionally, does not contain all the required codepoints) the 229 229 following rules come into play: First, … … 238 238 Persian and other non-latin writing systems. All of these files prefer 239 239 commercial fonts if they are present, although modern libre fonts are 240 often at least their equals.241 </para> 242 243 <para> 244 Since fontconfig-2.12.5 there is also generic family matching for some245 emoji and math fonts, see {45,60}-generic.conf.240 often at least equal. 241 </para> 242 243 <para> 244 Since fontconfig-2.12.5, there is also generic family matching for some 245 emoji and math fonts, please see {45,60}-generic.conf. 246 246 </para> 247 247 … … 268 268 <para> 269 269 To try out different settings, you may need to exit from Xorg and then 270 r erun <command>startx</command>so that all applications use the new271 settings. And if you use Gnome or KDE their desktops can override these272 changes. To explore the possibilities, create a file for your user:270 run <command>startx</command> again so that all applications use the new 271 settings. If you use GNOME, KDE, or LXQt, their desktops can override 272 these changes. To explore the possibilities, create a file for your user: 273 273 </para> 274 274 … … 340 340 installed. Now, many people will not need to install any of them. But if 341 341 for some reason you have installed one or more bitmap fonts, you can 342 prevent them being used by <application>fontconfig</application> by 343 creating the following file as the 344 <systemitem class="username">root</systemitem> user : 342 prevent them from being used by <application>fontconfig</application> by 343 creating the following file as the &root; user : 345 344 </para> 346 345 … … 381 380 <listitem> 382 381 <para> 383 There are hundreds of files, which makes selecting the font hard.382 There are hundreds of files, which makes selecting fonts difficult. 384 383 </para> 385 384 </listitem> … … 396 395 <para> 397 396 Several fonts have multiple sizes and impenetrable short names, which 398 both make selecting the correct font even harder.397 both make selecting the correct font even more difficult. 399 398 </para> 400 399 </listitem> … … 441 440 442 441 </sect2> 443 444 442 445 443 <sect2 role="configuration" id="preferring-certain-fonts" xreflabel="Preferring certain fonts"> … … 471 469 <para> 472 470 If you have installed the current version, the user documentation is 473 available in html, PDFand text versions at <filename471 available in HTML, PDF, and text versions at <filename 474 472 class="directory">/usr/share/doc/fontconfig-&fontconfig-version;/</filename> 475 473 : change the version if you installed a different one. … … 603 601 <sect2 role="configuration" id="editing-old-style-conf-files" 604 602 xreflabel="Editing Old-Style conf files"> 605 <title>Editing Old- style conf files</title>603 <title>Editing Old-Style conf files</title> 606 604 607 605 <para> … … 636 634 The following example is the first part of 637 635 <filename>64-arphic-uming.conf</filename> from <xref linkend="UMing"/> - 638 there are a lotmore similar items which also need changing :636 there are many more similar items which also need changing : 639 637 </para> 640 638 … … 657 655 <para> 658 656 The process to correct this is straightforward but tedious - for every 659 item which produces an error message, using your editor (as the 660 <systemitem class="username">root</systemitem> user)edit the installed657 item which produces an error message, using your editor (as the &root; 658 user), edit the installed 661 659 file to repeat the whole block as many times as there are multiple 662 660 variables, then reduce each example to have only one of them. You may
Note:
See TracChangeset
for help on using the changeset viewer.