TXTW(1)

πŸ“¦ version 0.4, in nixos 26.05, nixpkgs unstable

πŸ’… 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