sites

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

commit af043eaf6ca068f0c4f0f011400d1c30d5f72e5a
parent 0c6a1c7823c6ff0b616142bc58719f19013e97b1
Author: elbachir-one <bachiralfa@gmail.com>
Date:   Wed, 21 Jan 2026 17:24:26 +0100

[st][patches][fontmetrics] Fixed index.md

Diffstat:
Mst.suckless.org/patches/fontmetrics/index.md | 31++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)

diff --git a/st.suckless.org/patches/fontmetrics/index.md b/st.suckless.org/patches/fontmetrics/index.md @@ -3,24 +3,25 @@ fontmetrics Description ----------- -This patch uses the font metrics provided in a TrueType font's `OS/2` table -(see [Microsoft](https://learn.microsoft.com/en-us/typography/opentype/spec/os2) -or [Apple](https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6OS2.html) documentation), -if available, to determine the character cell height and underline/strike-through thickness and position. -This may or may not make the font rendering, particularly block and box-drawing elements, better or worse. +This patch uses the font metrics provided in a TrueType font’s `OS/2` table +(see the [Microsoft documentation](https://learn.microsoft.com/en-us/typography/opentype/spec/os2) +or the [Apple documentation](https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6OS2.html)), +when available, to determine the character cell height as well as the thickness +and position of underline and strikethrough elements. -`st` normally uses the descent and ascent heights provided by FreeType, -which seems to derive them from `hhea` table values. +Depending on the font, this may improve or worsen font rendering, particularly +for block and box-drawing characters. -There is no standard for how monotype font files are supposed to communicate correct metrics to terminal emulators, -and actual usage is inconsistent between fonts. +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 -------- +* [st-fontmetrics-0.9.3.diff](st-fontmetrics-0.9.3.diff) -- [st-fontmetrics-0.9.3.diff](st-fontmetrics-0.9.3.diff) (0.9.3) - -Authors -------- - -- Paul Storkman - <storkman@storkman.nl> +Author +------ +* Paul Storkman - <storkman@storkman.nl>