Changeset 82ea9e2 for x/installing
- Timestamp:
- 11/29/2023 07:58:24 AM (10 months ago)
- Branches:
- 12.1, 12.2, gimp3, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, trunk, xry111/for-12.3, xry111/llvm18, xry111/spidermonkey128
- Children:
- 1307636
- Parents:
- a5d96b7
- Location:
- x/installing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
x/installing/TTF-and-OTF-fonts.xml
ra5d96b7 r82ea9e2 27 27 Type1 fonts were added, but the desktop world moved on to using TrueType 28 28 and Open Type fonts. To support these, Xorg uses Xft, the X FreeType 29 interface library, with fontconfig (see previous page for details of30 fontconfigincluding how fonts are selected and various reasons why a29 interface library, with Fontconfig (see previous page for details 30 including how fonts are selected and various reasons why a 31 31 font might be ignored). 32 32 </para> … … 136 136 In the past, everybody recommended running <command>fc-cache</command> 137 137 as the &root; user after installing or removing fonts, but this is not 138 necessary anymore on Linux, <application> fontconfig</application> will do138 necessary anymore on Linux, <application>Fontconfig</application> will do 139 139 it automatically if needed as well as if the font caches are more than 30 140 140 seconds old. However, if you add a font and want to use it immediately, … … 311 311 Georgian and some other glyphs. In the absence of the Bitstream Vera 312 312 fonts (which had much less coverage), these were the default fallback 313 fonts for 'Latin' languages. As of fontconfig-2.14, if the Noto 'Latin'313 fonts for 'Latin' languages. As of Fontconfig-2.14, if the Noto 'Latin' 314 314 fonts have been installed they will be prioritised ahead of DejaVu. 315 315 </para> … … 335 335 <ulink url="https://fontlibrary.org/en/font/gelasio">Gelasio</ulink> is 336 336 metrically compatible with MS Georgia and 337 <application> fontconfig</application> will use it if MS Georgia is337 <application>Fontconfig</application> will use it if MS Georgia is 338 338 requested but is not installed. 339 339 </para> … … 388 388 Although many old posts recommend installing these fonts for 389 389 output which looks better, less old posts say that these are 390 'ugly' or 'broken' with modern fontconfig, Freetype and Pango.390 'ugly' or 'broken' with modern Fontconfig, Freetype and Pango. 391 391 Most people will not want to install any of these fonts. 392 392 </para> … … 425 425 426 426 <para> 427 Those three fonts are the first-choice preferences of fontconfig for text427 Those three fonts are the first-choice preferences of Fontconfig for text 428 428 in those three alphabets, and they are updated frequently to cover recent 429 429 Unicode additions such as the extensions for phonetic transcription in … … 456 456 <para> 457 457 For writing systems not using the Latin, Greek or Cyrillic alphabets the 458 Noto fonts are not preferred by fontconfig. If you use a Noto font for458 Noto fonts are not preferred by Fontconfig. If you use a Noto font for 459 459 a modern language where another installed font also covers it (e.g. the 460 460 DejaVu conts cover several Right-to-Left alphabets), you might need to 461 set a preference for fontconfig - see the previous page.461 set a preference for Fontconfig - see the previous page. 462 462 </para> 463 463 … … 511 511 512 512 <para> 513 For indic languages, fontconfig now prefers Lohit fonts (Sanskrit for 'red').513 For indic languages, Fontconfig now prefers Lohit fonts (Sanskrit for 'red'). 514 514 They can be found at <ulink url= 515 515 "https://releases.pagure.org/lohit/">pagure.org</ulink> … … 528 528 529 529 <para> 530 Also, <application> fontconfig</application> prefers Chinese to Japanese530 Also, <application>Fontconfig</application> prefers Chinese to Japanese 531 531 by default. Tuning that is covered at <xref linkend="prefer-chosen-CJK-fonts"/>. 532 532 </para> … … 548 548 written in Mandarin. The UMing HK, Noto Sans HK and WenQuanYi Zen Hei 549 549 fonts all seem to cover Hong Kong usage 550 (<application> fontconfig</application> disagrees about Noto Sans HK).550 (<application>Fontconfig</application> disagrees about Noto Sans HK). 551 551 </para> 552 552 … … 700 700 Zen Hei</ulink> provides a Sans-Serif font which covers all CJK scripts 701 701 including Korean. Although it includes old-style conf files, these are 702 not required: <application> fontconfig</application> will already treat702 not required: <application>Fontconfig</application> will already treat 703 703 these fonts (the 'sharp' contains bitmaps, the monospace appears not 704 704 to be Mono in its ASCII part) as Sans, Serif, and Monospace. If all … … 737 737 <ulink url='https://moji-or-jp.translate.goog/ipafont/?_x_tr_sl=auto&_x_tr_tl=en&_x_tr_hl=en&_x_tr_pto=wapp'>Google Translate</ulink> 738 738 on the home page, then click on the download link for IPAex Font Ver.004.01. 739 Unfortunately, <application> fontconfig</application> only knows about739 Unfortunately, <application>Fontconfig</application> only knows about 740 740 the older IPAfonts and the forked IPA Mona font (which is not easily 741 741 available and which apparently does not meet Debian's Free Software 742 742 guidelines). If you install the IPAex fonts, you may want to make it known 743 to fontconfig. Please see <xref743 to Fontconfig. Please see <xref 744 744 linkend="prefer-chosen-CJK-fonts"/> for one way to accomplish this. 745 745 </para> … … 774 774 Gothic are the main Sans fonts. BLFS previously recommended the 775 775 Baekmuk fonts, but the Nanum and Un fonts are now preferred to Baekmuk by 776 <application> fontconfig</application> because of user requests.776 <application>Fontconfig</application> because of user requests. 777 777 </para> 778 778 -
x/installing/tuning-fontconfig.xml
ra5d96b7 r82ea9e2 26 26 If you only read text in English, and are happy with the common libre 27 27 fonts listed on the next page, you may never need to worry about the 28 details of how <application> fontconfig</application> works. But there are28 details of how <application>Fontconfig</application> works. But there are 29 29 many things which can be altered if they do not suit your needs. 30 30 </para> … … 41 41 <para> 42 42 Unfortunately, some of the terminology is ambiguous (e.g. 'font face' can 43 mean a name known to fontconfig, <emphasis>or</emphasis> the ordinary,43 mean a name known to Fontconfig, <emphasis>or</emphasis> the ordinary, 44 44 condensed, etc variations of a font). 45 45 </para> … … 105 105 The Xft font protocol provides antialiased font rendering through 106 106 <application>freetype</application>, and fonts are controlled from the 107 client side using <application> fontconfig</application> (except for107 client side using <application>Fontconfig</application> (except for 108 108 <xref linkend="rxvt-unicode"/> which can use fonts listed in 109 109 <filename>~/.Xresources</filename>, and <xref linkend="abiword"/> which … … 149 149 150 150 <para> 151 The following commands may be helpful when working with fontconfig,151 The following commands may be helpful when working with Fontconfig, 152 152 particularly if you are interested in overriding which font will be 153 153 chosen. 'TYPE' should be one of serif, sans-serif or monospace. … … 166 166 see what happens if a font you have not installed is requested, but you 167 167 can also use it if the system is giving you a different font from 168 what you expected (perhaps because <application> fontconfig</application>168 what you expected (perhaps because <application>Fontconfig</application> 169 169 does not think that the font supports your language). 170 170 </para> … … 173 173 <command>fc-match -a <replaceable>Type</replaceable> | less</command> : 174 174 provides a list of all fonts which can be used for that type (Monospace, 175 Sans Sa sn-serif, Serif <emphasis>(capital letters optional)</emphasis>).176 Note that in-extremis <application> fontconfig</application> will take a175 Sans Sans-serif, Serif <emphasis>(capital letters optional)</emphasis>). 176 Note that in-extremis <application>Fontconfig</application> will take a 177 177 glyph from any available font, even if it is not of the specified type, 178 178 and unless it knows about the font's type it will assume it is Sans. … … 349 349 350 350 <para> 351 All remaining scripts for which fontconfig has preferences (CJK scripts,351 All remaining scripts for which Fontconfig has preferences (CJK scripts, 352 352 Indic scripts) are dealt with in <filename>65-nonlatin.conf</filename>. 353 353 These are again nominally grouped as Serif, Sans-Serif, Monospace. Of the … … 387 387 388 388 <para> 389 Before fontconfig-2.14, the first preferred Latin font family was Bitstream389 Before Fontconfig-2.14, the first preferred Latin font family was Bitstream 390 390 Vera. In practice that was rarely used because it covered so little. After 391 391 that, DejaVu was the next preferred family, so people were recommended to … … 415 415 416 416 <para> 417 For 'fantasy' there are no free fonts, so fontconfig will fall back to417 For 'fantasy' there are no free fonts, so Fontconfig will fall back to 418 418 sans-serif. 419 419 </para> … … 421 421 <para> 422 422 For 'cursive', the only free font is TeX Gyre Chorus as an alias for 423 ITC Zapf chancery, otherwise fontconfig will again fall back to sans-serif.423 ITC Zapf chancery, otherwise Fontconfig will again fall back to sans-serif. 424 424 </para> 425 425 … … 435 435 436 436 <para> 437 Since fontconfig-2.12.5, there is also generic family matching for some437 Since Fontconfig-2.12.5, there is also generic family matching for some 438 438 emoji and math fonts, please see {45,60}-generic.conf. 439 439 </para> … … 564 564 installed. Now, many people will not need to install any of them. But if 565 565 for some reason you have installed one or more bitmap fonts, you can 566 prevent them from being used by <application> fontconfig</application> by566 prevent them from being used by <application>Fontconfig</application> by 567 567 creating the following file as the &root; user : 568 568 </para> … … 650 650 system in a newer version, and if you have multiple versions of a font 651 651 it is unclear which one will be used by 652 <application> fontconfig</application>.652 <application>Fontconfig</application>. 653 653 </para> 654 654 </listitem> … … 740 740 <!-- prefer Nimbus Roman No9 L for Times New Roman as well as for Times, 741 741 without this Tinos and Liberation Serif take precedence for Times New Roman 742 before fontconfig falls back to whatever matches Times -->742 before Fontconfig falls back to whatever matches Times --> 743 743 <alias binding="same"> 744 744 <family>Times New Roman</family> … … 786 786 with an old conf file preferring it for zh-tw and zh-hk language 787 787 codes (and for sans-serif and monospace). But without the conf file, 788 fontconfig will only treat it as suitable for zh-hk.788 Fontconfig will only treat it as suitable for zh-hk. 789 789 The conf file needs to be edited to current style and will then be 790 790 prepended, so specifying UMing does not belong in this … … 861 861 installed in <filename class="directory">/etc/fonts/conf.d</filename>. 862 862 However, if you do that and then use a terminal to run any command which 863 uses <application> fontconfig</application> you may see error messages such863 uses <application>Fontconfig</application> you may see error messages such 864 864 as : 865 865 </para> … … 873 873 <para> 874 874 In practice, these old rules do not work. For non-CJK users, 875 <application> fontconfig</application> will usually do a good job875 <application>Fontconfig</application> will usually do a good job 876 876 <emphasis>without</emphasis> these rules. Their origin dates back to when 877 877 CJK users needed handcrafted bitmaps to be legible at small sizes, and … … 983 983 to your local machine. As shiped it will use your default Serif font assuming 984 984 you have one. Edit it to point to a specific installed font using the name 985 known to fontconfig (also in the *EDITME FONTNAME* text items) and open it985 known to Fontconfig (also in the *EDITME FONTNAME* text items) and open it 986 986 from your desktop browser. You can also use it to look at a font with only 987 987 two installed weights, e.g. for testing to see if you prefer other weights. … … 1015 1015 1016 1016 <bridgehead renderas="sect3" id="items-which-can-override-fontconfig" 1017 xreflabel="Items which can override fontconfig">Items which can override fontconfig</bridgehead>1018 1019 <para> 1020 Several desktop environments, as well as some programs, will use fontconfig1017 xreflabel="Items which can override fontconfig">Items which can override Fontconfig</bridgehead> 1018 1019 <para> 1020 Several desktop environments, as well as some programs, will use Fontconfig 1021 1021 to find fonts but may override certain things. 1022 1022 </para> … … 1025 1025 GNOME: The settings in org.gnome.desktop.interface can be updated with 1026 1026 <application>dconf-editor</application>. You can set the fonts to your preference 1027 and desired point size. To use the fonts chosen by fontconfig specify e.g.1027 and desired point size. To use the fonts chosen by Fontconfig specify e.g. 1028 1028 'Sans 12', Serif 11', 'Mono 10' as desired. Also review the antialiasing, hinting 1029 1029 and rgba settings. … … 1031 1031 1032 1032 <para> 1033 LXQt: Change font settings as necessary to match fontconfig in1033 LXQt: Change font settings as necessary to match Fontconfig in 1034 1034 <application>lxqt-config-appearance</application>. 1035 1035 </para> … … 1055 1055 series, use the 'Hamburger' menu to got to Preferences, General, and under Fonts 1056 1056 -> Advanced select Sans Serif, Serif, Monospace as appropriate if you wish to use 1057 the fonts which match fontconfig. Set the point sizes as desired. In later1057 the fonts which match Fontconfig. Set the point sizes as desired. In later 1058 1058 versions, the settings are at Preferences -> Fonts. 1059 1059 <!-- FIXME : Ken - when merging, add note in packages to update this when next ESR … … 1065 1065 which supports several European languages but had only one weight and no 1066 1066 italics or slant showed that although <application>libreoffice</application> 1067 uses fontconfig to find the font, it created its own bold or slanted text.1067 uses Fontconfig to find the font, it created its own bold or slanted text. 1068 1068 It is not clear if it will do the same where a font actually has bold weight 1069 1069 or an italic style. Also, documentation shows that libreoffice has its own 1070 1070 substitution rules for when a codepoint is not found in the selected font, 1071 but is unclear if those rules apply on Linux using fontconfig.1071 but is unclear if those rules apply on Linux using Fontconfig. 1072 1072 </para> 1073 1073 … … 1089 1089 The blog entries by <ulink 1090 1090 url="https://eev.ee/blog/2015/05/20/i-stared-into-the-fontconfig-and-the-fontconfig-stared-back-at-me/">Eevee</ulink> 1091 are particularly useful if <application> fontconfig</application> does not1091 are particularly useful if <application>Fontconfig</application> does not 1092 1092 think your chosen font supports your language, and for preferring some 1093 1093 non-MS Japanese fonts when an ugly MS font is already installed.
Note:
See TracChangeset
for help on using the changeset viewer.