Changeset 7457dcb for x/installing


Ignore:
Timestamp:
08/30/2023 04:45:59 PM (9 months ago)
Author:
Xi Ruoyao <xry111@…>
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:
bec34e0
Parents:
7c60108
git-author:
Xi Ruoyao <xry111@…> (08/30/2023 04:35:33 PM)
git-committer:
Xi Ruoyao <xry111@…> (08/30/2023 04:45:59 PM)
Message:

TTF-and-OTF-fonts: Expand and correct the info about variable fonts

I'm pretty sure most desktop apps can use variable fonts today (even
Xterm renders variable fonts fine). But there is indeed something not
working, notably xelatex.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/installing/TTF-and-OTF-fonts.xml

    r7c60108 r7457dcb  
    4747      If a font provides both TTF and OTF forms, you should prefer the OTF form
    4848      in Linux, as it may provide more features for programs which know how to
    49       use them (such as xelatex). But if a font is supplied with one or more
    50       variable fonts, you should not use them. Desktop applications need static
    51       fonts. For information about variable fonts, please see <ulink
     49      use them (such as xelatex).
     50    </para>
     51
     52    <para>
     53      A font may have multiple variations.  For example, Noto Sans
     54      has 9 weights (ExtraLight, Light, Thin, Normal, Medium, SemiBold,
     55      Bold, ExtraBold, and Black) and 2 styles (Regular and Italic), thus
     56      18 variations in total.  Normally each variation is provided as a
     57      separate TTF or OTF file.  For full coverage you need to install
     58      all these TTF or OTF files.  Even if you are low on disk space, you
     59      should still install two weights (Regular and Bold) by two styles
     60      (Normal and Italic) if the font has these variations.  Some fonts
     61      do not have Italic style (for example most CJK fonts and some
     62      monospace fonts), and some fonts only have one variation (for example
     63      Noto Sans Math, it only provides the glyph of some mathematic
     64      symbols).
     65    </para>
     66
     67    <para>
     68      Some fonts are also available as <emphasis>variable</emphasis> font
     69      files.  Unlike a normal font file which only contains one variation,
     70      a variable font file contains infinite variations.  Each variation
     71      can be defined by the application using this font by assigning
     72      number(s) to one or more variables.  There are also pre-defined
     73      <emphasis>named instances</emphasis> analogous to the traditional
     74      variations.  For example, with the variable version of Noto Sans, the
     75      weight variable can be assigned any number not less than 100 and not
     76      greater than 900, and 9 named instances are pre-defined: ExtraLight
     77      for weight=100, Regular for weight=400, Bold for weight=700, etc.  So
     78      once a variable variable font file for Noto Sans is installed, all the
     79      9 named instances (or <quote>variations</quote>) are available.  Note
     80      that the slope is not defined as a variable in the variable version
     81      of Noto Sans, so Regular and Italic are still traditional variations
     82      and a separate variable font file is needed for the Italic variation.
     83    </para>
     84
     85    <para>
     86      A variable font file is obviously more flexiable than the normal
     87      (static) font files.  It's extremely useful for fine tuning the
     88      font for Web pages or publications.  And, the size of a variable font
     89      file is usually significantly smaller than the total size of several
     90      static font files for multiple variations.  For example, the variable
     91      font file for Noto Sans SC is only 11M, while the total size of 9
     92      static font files for Noto Sans SC is 91M.  But you must make sure
     93      your applications really support variable fonts before installing one.
     94      For example, <command>lualatex</command> supports variable font but
     95      <command>xelatex</command> does not.  So if you want to use a font for
     96      an article and use <command>xelatex</command> for typesetting, you
     97      must not install the variable font files.
     98    </para>
     99
     100    <para>
     101      For information about variable fonts, please see <ulink
    52102      url="https://fonts.google.com/knowledge/introducing_type/introducing_variable_fonts/">
    53       Variable Fonts</ulink>, as they are particularly useful where a web page
    54       forces one of these fonts and sets details in its CSS.
     103      Variable Fonts</ulink>.
    55104    </para>
    56105
Note: See TracChangeset for help on using the changeset viewer.