Changeset 1f9b99f for x


Ignore:
Timestamp:
11/22/2023 09:49:48 PM (6 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:
895b457
Parents:
fe9d1b1d
Message:

tuning-fontconfig - flesh out details for free fonts.

File:
1 edited

Legend:

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

    rfe9d1b1d r1f9b99f  
    244244      following rules come into play: First,
    245245      <filename>30-metric-aliases.conf</filename> is used to map aliases for
    246       some fonts with the same metrics (same size, etc). After that, an
    247       unknown font will be searched for in <filename>45-latin.conf</filename>:
     246      some fonts with the same metrics (same size, etc). Note that there are
     247      both weak and strong aliases so that aliases for one form such as
     248      Helvetica or Times New Roman can be stisfied by the other style, i.e.
     249      anything which is an alias of Arial or Times in those examples.
     250      After that, an unknown font will be searched for in
     251      <filename>45-latin.conf</filename>:
    248252      'latin' covers cyrillic and greek, and now also maps system-ui fonts which
    249253      are used for User Interface messages in non-latin alphabets. If the font
    250254      is found it will be mapped as serif, sans-serif, monospace, fantasy,
    251255      cursive, or system-ui.  Otherwise, 49-sansserif.conf will assume it is
    252       Sans. Then <filename>60-latin.conf</filename>
    253       provides ordered lists of the fallbacks - <xref linkend="dejavu-fonts"/>
     256      Sans.
     257    </para>
     258    <para>
     259      Then <filename>60-latin.conf</filename>
     260      provides ordered lists of the fallbacks - <xref linkend="noto-fonts"/>
    254261      will be used if you installed them. Cyrillic and Greek appear to be
    255262      treated in the same way. There are similar files with a 65- prefix for
    256263      Persian and other non-latin writing systems. All of these files prefer
    257264      commercial fonts if they are present, although modern libre fonts are
    258       often at least equal.
     265      often at least equal. Finally, if a codepoint is still not found it can
     266      be taken from any available system font. The following details only
     267      mention freely available fonts.
     268    </para>
     269
     270    <para>
     271      Before fontconfig-2.14, the first preferred font family was Bitstream
     272      Vera. In practice that was rarely used because it covered so little. After
     273      that, DejaVu was the next preferred family, so people were recommended to
     274      install that. That has now changed, Bitstream Vera has been replaced by the
     275      relevant Noto fonts (Serif, Sans, Sans Mono), so these will be preferred if
     276      they have been installed, followed by DejaVu.
     277    </para>
     278
     279    <para>
     280      For serif, Times New Roman could have been aliased from Liberation Serif or
     281      Tinos, and Times from TeX Gyre Termes, so although the named fonts are not
     282      free, the metric-compatilbe fonts can be used. Ignoring other non-free fonts,
     283      the remaining order for serif is: Times New Roman, Luxi Serif, Nimbus Roman
     284      No9 L, Times. In practice, that means those fonts at the end of the list
     285      are unlikely to be used unless a web page asks for them.
     286    </para>
     287
     288    <para>
     289      For sans-serif, the remaining order is anything mapped to Arial, Luxi Sans,
     290      Nimbus Sans L, anything mapped to Helvetica.
     291    </para>
     292
     293    <para>
     294      The remaining alternatives for monospace are Inconsolata, anything mapped
     295      to Courier New, Luxi Mono, Nimbus Mono, anything mapped to Courier.
     296    </para>
     297
     298    <para>
     299      For 'fantasy' there are no free fonts, so fontconfig will fall back to
     300      sans-serif.
     301    </para>
     302
     303    <para>
     304      For 'cursive', the only free font is TeX Gyre Chorus as an alias for
     305      ITC Zapf chancery, otherwise fontconfig will again fall back to sans-serif.
     306    </para>
     307
     308    <para>
     309      The system-ui category is unusual. It is for interface messages, so some
     310      scripts need special versions to fit in the available space. For latin,
     311      greek and cyrillic a normal sans font should fit without problems. However,
     312      the first preferred font is Cantarell, followed by Noto Sans UI. Cantarell
     313      started as a latin sans-serif font, that has been forked in gnome under
     314      the same name but they only provide the source. The Noto Sans UI fonts are
     315      for other languages.
    259316    </para>
    260317
Note: See TracChangeset for help on using the changeset viewer.