fontmetrics
Description
This patch uses the font metrics provided in a TrueType font’s OS/2 table
(see the Microsoft documentation
or the Apple documentation),
when available, to determine the character cell height as well as the thickness
and position of underline and strikethrough elements.
Depending on the font, this may improve or worsen font rendering, particularly for block and box-drawing characters.
By default, st uses the ascent and descent values provided by FreeType,
which appear to be derived from the hhea table.
There is no strict standard for how monospaced font files should communicate correct metrics to terminal emulators, and real-world usage is inconsistent across fonts.
Download
Author
- Paul Storkman - storkman@storkman.nl