sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

index.md (1014B)


      1 fontmetrics
      2 ===========
      3 
      4 Description
      5 -----------
      6 This patch uses the font metrics provided in a TrueType font’s `OS/2` table
      7 (see the [Microsoft documentation](https://learn.microsoft.com/en-us/typography/opentype/spec/os2)
      8 or the [Apple documentation](https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6OS2.html)),
      9 when available, to determine the character cell height as well as the thickness
     10 and position of underline and strikethrough elements.
     11 
     12 Depending on the font, this may improve or worsen font rendering, particularly
     13 for block and box-drawing characters.
     14 
     15 By default, `st` uses the ascent and descent values provided by FreeType,
     16 which appear to be derived from the `hhea` table.
     17 
     18 There is no strict standard for how monospaced font files should communicate correct
     19 metrics to terminal emulators, and real-world usage is inconsistent across fonts.
     20 
     21 Download
     22 --------
     23 * [st-fontmetrics-0.9.3.diff](st-fontmetrics-0.9.3.diff)
     24 
     25 Author
     26 ------
     27 * Paul Storkman - <storkman@storkman.nl>