Changeset 0262f7c


Ignore:
Timestamp:
12/06/2023 03:01:18 PM (5 months ago)
Author:
Ken Moffat <ken@…>
Branches:
12.1, ken/TL2024, ken/tuningfonts, lazarus, plabs/newcss, python3.11, rahul/power-profiles-daemon, trunk, xry111/llvm18
Children:
69c8f9fa
Parents:
9c1319c
Message:

tuningfonts branch: Address most of Doug's review comments.

Typos, rewordings, put the conf file edits in <screen> blocks to
stand out, add details re GNOME Tweaks and Thunderbird.

I think I made a slight change to one of the wordings, but I now
forget which.

Outstanding item: 'fc-match -a Type | less' wording made me unsure
of exactly which variants of Sans Sasn-serif would be accepted.
Trying to test this (I have far too many fonts on current system)
appeared to act as if hte Type was being ignored. Need to think
about this.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/installing/tuning-fontconfig.xml

    r9c1319c r0262f7c  
    131131      class="directory">TTF</filename> <application>X</application> font
    132132      directories to <filename
    133       class="directory">/usr/share/fonts/X11-{OTF,TTF}</filename>. This allows
    134       <application>Fontconfig</application> to use the OpenType and TrueType
    135       fonts provided by <application>X</application>, although many people will
    136       prefer to use more modern fonts.
     133      class="directory">/usr/share/fonts/X11-{OTF,TTF}</filename> in Xorg Fonts.
     134      This allows <application>Fontconfig</application> to use the OpenType and
     135      TrueType fonts provided by <application>X</application>, although many
     136      people will prefer to use more modern fonts.
    137137    </para>
    138138
     
    159159    <para>
    160160      <command>fc-list | less</command> : shows a list of all available fonts
    161       (/path/to/filename: Font Name:style). If you installed a font more than
    162       30 seconds ago but it does not show, then it or one of its directories is
    163       not readable by your user.
     161      (/path/to/filename: Font Name:style). If you installed a font and it
     162      doesn't show, then the directory it is contained in is not readable by
     163      your user.
    164164    </para>
    165165
     
    176176      <command>fc-match -a <replaceable>Type</replaceable> | less</command> :
    177177      provides a list of all fonts which can be used for that type (Monospace,
    178       Sans Sans-serif, Serif <emphasis>(capital letters optional)</emphasis>).
     178      Sans, Sans-serif, Serif <emphasis>(capital letters optional)</emphasis>).
    179179      Note that in-extremis <application>Fontconfig</application> will take a
    180180      glyph from any available font, even if it is not of the specified type,
     
    187187      It does not mean that the reported font will necessarily be able to show
    188188      Japanese ideograms, so a fallback might be used, or some glyphs may be
    189       missing. For language codes use  ISO-639 value such as 'fr', 'ja', 'zh-cn'.
     189      missing. For language codesi, use ISO-639 values such as 'fr', 'ja', 'zh-cn'.
    190190      Note that an unrecognized value such as just 'zh' will not return any
    191       match. To illustrate the fallback, on a system wherei both Noto Sans Mono
     191      match. To illustrate the fallback, on a system where both Noto Sans Mono
    192192      and DejaVu Sans Mono are installed, <command>fc-match 'monospace
    193193      :lang=en</command> shows Noto Sans Mono will be used, but if the lang is
     
    320320      examples of Latin fonts with the same metrics can be found in the
    321321      'Substitutes' PDFs at <ulink
    322       url="http://zarniwhoop.uk/files/PDF-substitutes/">zarniwhoop.uk.)</ulink>
     322      url="http://zarniwhoop.uk/files/PDF-substitutes/">zarniwhoop.uk.</ulink>
    323323    </para>
    324324
     
    344344
    345345    <para>
    346       Default Persion fonts are dealt with in
     346      Default Persian fonts are dealt with in
    347347      <filename>65-fonts-persian.conf</filename>. It looks as if all the listed
    348348      fonts are commercial. Using fonts that support Persian (which has its own
     
    386386      The various Noto CJK fonts are <emphasis>not</emphasis> among the listed
    387387      fonts, possibly the RedHat developers preferred other fonts.  These now
    388       come in many variations, probably anyone who uses these will not install
     388      come in many variations, and most users  who use these will not install
    389389      any other CJK fonts.
    390390    </para>
     
    402402      For serif, Times New Roman could have been aliased from Liberation Serif or
    403403      Tinos, and Times from TeX Gyre Termes, so although the named fonts are not
    404       free, the metric-compatilbe fonts can be used. Ignoring other non-free fonts,
     404      free, the metric-compatible fonts can be used. Ignoring other non-free fonts,
    405405      the remaining order for serif is: Times New Roman, Luxi Serif, Nimbus Roman
    406       No9 L, Times. In practice, that means those fonts at the end of the list
     406      No9 L, and Times. In practice, that means those fonts at the end of the list
    407407      are unlikely to be used unless a web page asks for them.
    408408    </para>
     
    410410    <para>
    411411      For sans-serif, the remaining order is anything mapped to Arial, Luxi Sans,
    412       Nimbus Sans L, anything mapped to Helvetica.
     412      Nimbus Sans L, and anything mapped to Helvetica.
    413413    </para>
    414414
    415415    <para>
    416416      The remaining alternatives for monospace are Inconsolata, anything mapped
    417       to Courier New, Luxi Mono, Nimbus Mono, anything mapped to Courier.
     417      to Courier New, Luxi Mono, Nimbus Mono, and anything mapped to Courier.
    418418    </para>
    419419
     
    468468      run <command>startx</command> again so that all applications use the new
    469469      settings. Several things can override the fontconfig settings, see
    470       <xref linkend="items-which-can-override-fontconfig"/> below. To explore
    471       the possibilities, create a file for your user:
     470      <xref linkend="items-which-can-override-fontconfig"/> below for more
     471      details. To explore the possibilities, create a file for your user:
    472472    </para>
    473473
     
    534534        linkend="subpixel-hinting"/> (Spoiler: there is NO sub-pixel hinting,
    535535        the code simply ignores <emphasis>all</emphasis> horizontal hinting
    536         instructions.
     536        instructions).
    537537      </para>
    538538
     
    597597    synthetic slanting and emboldening to a font. The synthetic emboldening can
    598598    be applied to a visibly faint font, but the results are not always as
    599     expected: With just the embolden, <application>epiphany</application> showed
    600     darker font, <application>firefox</application> did not - so although
    601     <application>cairo</application> is now used by
     599    expected: With just the embolden, <application>Epiphany</application> showed
     600    darker fonts while <application>Firefox</application> did not - so although
     601    <application>Cairo</application> is now used by
    602602    <application>firefox</application> the comment about setting Weight is still
    603     valid. But setting both, <application>epiphany</application> will show bold text
    604     by default, but heavy text if markup for bold is used. In both cases, neither
     603    valid. But setting both, <application>Epiphany</application> will show bold
     604    text by default, but it will show heavy text if markup for bold is used. In both
     605    cases, neither
    605606    <application>libreOffice</application> nor <application>falkon</application>
    606607    showed bolder text.
     
    902903    </para>
    903904
    904     <para>
    905       <literallayout>
     905<screen role="root">
    906906   &lt;match target="pattern"&gt;
    907907       &lt;test qual="any" name="lang" compare="contains"&gt;
     
    915915           &lt;string&gt;AR PL UMing CN&lt;/string&gt;
    916916       &lt;/edit&gt;
    917     &lt;/match&gt;</literallayout>
    918     </para>
     917   &lt;/match&gt;
     918</screen>
    919919
    920920    <para>
     
    930930    </para>
    931931
    932     <para>
    933       <literallayout>
     932<screen role="root">
    934933   &lt;match target="pattern"&gt;
    935934       &lt;test qual="any" name="lang" compare="contains"&gt;
     
    953952           &lt;string&gt;AR PL UMing CN&lt;/string&gt;
    954953       &lt;/edit&gt;
    955     &lt;/match&gt;</literallayout>
    956     </para>
     954    &lt;/match&gt;
     955</screen>
    957956
    958957  </sect2>
     
    10461045      <application>Fontconfig</application> specify e.g. 'Sans 12', Serif 11',
    10471046      'Mono 10' as desired. Also review the antialiasing, hinting and rgba
    1048       settings.
     1047      settings. Alternatively, <xref linkend="gnome-tweaks"/> can also update
     1048      the font settings in a GUI form.
    10491049    </para>
    10501050
     
    10641064
    10651065    <para>
    1066       i<application>Xfce desktop</application>: The settings can be adjusted in
    1067       <application>Settings</application> Appearance -> Fonts. Specify your
     1066      <application>Xfce desktop</application>: The settings can be adjusted in
     1067      <application>Settings</application>i -> Appearance -> Fonts. Specify your
    10681068      preferred fonts, e.g. 'Sans Regular' (to use the normal face and weight
    10691069      rather than Bold and/or Italic) and adjust the point size in the option.
     
    11031103    </para>
    11041104
     1105    <para>
     1106      <application>Thunderbird</application>: The font settings can be changed
     1107      by going to "Edit -> Settings" and then scrolling down to "Fonts &amp;
     1108      Colors".
     1109    </para>
     1110
    11051111  </sect2>
    11061112
Note: See TracChangeset for help on using the changeset viewer.