public wiki contents of
git clone git://
Log | Files | Refs (1203B)

      1 charoffsets
      2 =========
      4 Description
      5 -----------
      6 Some fonts seem to misreport their height, which leads to unsightly vertical
      7 gaps appearing between rows of text with characters that are supposed to fill
      8 the vertical space, like box-drawing characters.
     10 This is because the character height that st uses is off from the actual glyph
     11 height, so there's a gap of bg space above and below each glyph. This can be
     12 adjusted by modifying the `chscale` value, but reducing that value alone just
     13 clips the bottom of the glyphs.
     15 This patch simply adds a `cyoffset` value (and a corresponding `cxoffset`) to
     16 allow you to adjust the glyph position, so it doesn't get clipped short when
     17 you reduce the `chscale`. You'll have to play with the values to get it to
     18 look right with your font choice.
     20 Example
     21 -------
     22 Note the vertical gaps between the lines in the box art, and the raised part
     23 that sticks out on the time display.
     25 Taken with Pragmata Pro with a few font patches applied.
     27 [![An example of the vertical gaps.](vertical-gaps.png)](vertical-gaps.png)
     29 Download
     30 --------
     31 * [st-charoffsets-20220311-0.8.5.diff](st-charoffsets-20220311-0.8.5.diff)
     33 Authors
     34 -------
     35 * Zacchary Dempsey-Plante - <>