BDFTRUNCATE(1)
π BDFTRUNCATE(1) β the X Version 11 one, bestie
okay so real talk, this is a page from X Version 11 and it's about a tiny little tool called bdftruncate, and honestly? she's niche but she EATS. let me tell you everything π
β¨ NAME β¨
bdftruncate β generate a truncated BDF font from an ISO 10646-1-encoded BDF font π
like yes, that's the whole personality. she truncates. she generates. she's an ISO 10646-1-encoded BDF font girlie.
πΈ SYNOPSIS πΈ
bdftruncate threshold < source.bdf > destination.bdf
bdftruncate [ --help | --version ]
two whole modes, no cap. either you feed her a threshold and pipe a font in and out, or you just ask her to --help / --version you π
π¦ DESCRIPTION π¦
okay so here's the vibe: bdftruncate lets you generate, from an ISO10646-1 encoded BDF font, other ISO10646-1 BDF fonts where all characters above a threshold code value are stored unencoded. literally the whole point of her existence π«Ά
and why would you even want that? because β and this is the iconic part β the Xlib API and the X11 protocol data structures used for representing font metric information are extremely inefficient when they're handling sparsely populated fonts. like, embarrassingly inefficient. π so we trim the excess off the top and everybody breathes easier.
so yeah: threshold go brrr, high codepoints get unencoded, font becomes less of a mess. periodt.
β OPTIONS β
--helpβ prints the usage message and then exits, iconic behavior, love a clean exit π--versionβ prints version information and then exits, also slay β¨
π₯ EXAMPLE π₯
the command
bdftruncate 0x3200 < 6x13.bdf > 6x13t.bdf
will generate the file 6x13t.bdf in which all glyphs with codes >= 0x3200 will only be stored unencoded β i.e., they're encoded at codepoint -1. π§
yes bestie, -1. that's the whole trick. everything at or above the threshold goes unencoded, bye π
π SEE ALSO π
ucs2any(1)β her friend, go say hi π
π AUTHOR π
bdftruncate was written by Markus Kuhn. π
Branden Robinson wrote this manual page, originally for the Debian Project. π«Ά
and that's the tea β β she's small, she's specific, she fixes your sparsely populated font metrics. iykyk π
sign-off time, bestie: this page came to you courtesy of font-util 1.4.2, dated 2025-04-27 β the BDFTRUNCATE(1) of our hearts. now go truncate something, respectfully πΈβ¨
π¦ where this page comes from
- alpine 3.24: font-util-doc 1.4.2-r0 Β· custom
- arch rolling: xorg-font-util 1.4.2-1 Β· MIT AND BSD-2-Clause AND MIT-open-group AND Unicode-3.0
- nixos 26.05: font-util 1.4.2
- nixpkgs unstable: font-util 1.4.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms