TXTW(1)
π TXTW(1) β Txtw Manual π
okay bestie, welcome to the Txtw Manual page for TXTW(1). this is the whole vibe check. π¦
πΈ NAME πΈ
txtw β compute text widths. literally what it says, no cap. β¨
β¨ SYNOPSIS β¨
txtw [-h|-v|-f FONT|-s SIZE|-F ALT_FONT|-S ALT_SIZE] STRING ...
π DESCRIPTION π
It returns the width in pixels of the given strings for the given font. that's the main character job. π
π OPTIONS π
-hβ prints the synopsis to standard output and exits. bye bestie π-vβ prints the version information to standard output and exits. slay, version check. β-f FONTβ sets the main font. π-s SIZEβ sets the size of the main font. π-F ALT_FONTβ sets the alternate font. π¦-S ALT_SIZEβ sets the size of the alternate font. πΈ
π STRING SYNTAX π
By default, the main font is used to compute the width. that's the default vibe.
The alternate font is used for the parts of the string enclosed between \( and \). so if you wrap a bit in those, it gets the alt-font treatment. iykyk π
π₯ EXAMPLE π₯
txtw -f 'DejaVu Sans' -s 11 -F SimpleIcons -S 16 'One \(U\) Two \(D\) Three'
π AUTHOR π
Bastien Dejean <nihilhill at gmail.com>
and that's the whole page, bestie. this iconic manual comes from Txtw 0.4, dated 12/13/2015, and it's filed under TXTW(1). periodt. π
π¦ where this page comes from
- nixos 26.05: txtw 0.4
- nixpkgs unstable: txtw 0.4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms