UNIPRINT(1)

πŸ“¦
version 3.1.0 Β· 4 versions
, in debian bookworm, debian trixie, fedora 43, fedora 44, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ UNIPRINT(1) β€” the uniprint page, LINUX COMMANDS, section 1 ✨

okay bestie, gather round, because this one is genuinely a little icon πŸ’…


🌸 NAME 🌸

uniprint β€” makes postscript output from Unicode text so you can actually print it. yes. that's the whole job. she's a specialist. πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

uniprint [ -out output-file ] [ -in input-file ] [ -decode encoding ] [
-printer printer ] [ -L ] [ -media media ] [ -us ] [ -nus ] [ -break ] [
-wrap ] [ -left ] [ -right ] [ -size font-size ] [ -hsize header-font-
size ] [ -font font-set ]

like, that's the whole vibe check right there. all the knobs. all of them. πŸ”₯


πŸ¦‹ DESCRIPTION πŸ¦‹

uniprint is a program from the yudit package. she makes a formatted poscript output that you can either save or yeet straight at your printer. πŸ’Œ

and here's the tea: the program needs TrueType/OpenType/CFF fonts that have a Unicode table in order to operate. no Unicode table, no printing. that's just the rules, bestie. 😭

if you're running Linux you most probably already have Unicode TrueType/OpenType fonts chilling in /usr/share/fonts. so like, go check. she's probably there. 🫢

the postcript output contains all the information needed to draw glyps. so no fonts are needed on the printer side at all β€” she embeds everything. main character energy. ✨

⚠️ but ngl, you may encounter problems with old ghostview or old printers. ancient tech is not slaying today, sorry. πŸ’€

πŸ’– OPTIONS πŸ’–

okay this is the part where we go through every single one, no skipping, periodt.

  • -out ouput-file β€” do not send the output to the printer, put it in the file instead. (yes, the argument is spelled ouput-file in the original, i'm not touching it, that's her name now πŸ’…) and if you specify the - character, she sends the postscript data to the standard output. iconic behavior.
  • -in input-file β€” if specified, read the document from a file. otherwise she reads stdin. yes bestie, she's pipeable. 😌
  • -decode encoding β€” specifies the encoding of the input text. every encoding method that is available for uniconv can be used. if you don't specify it, the encoding is set to utf-8. default slay. ✨
  • -printer printer β€” send the postscript output to printer through the lpr -P Printer command.
  • -break β€” option makes this program print a graphical representation of line breaking characters. lowkey so useful for debugging. πŸ‘€
  • -us β€” option turns on uniscribe emulation. for some scripts emulation is turned on by default anyway.
  • -nus β€” option turns off uniscribe emulation. for some scripts emulation is turned off by default.
  • -wrap β€” option makes this program do a simplistic line breaking on word boundaries.
  • -left β€” option sets the embedding of the document to Left.
  • -right β€” option sets the embedding of the document to Right.
  • -L β€” selects landscape printing. the default is portrait.
  • -media media β€” sets paper size. the default is A4. the following media values are accepted: A3, A4, A5, B4, B5, Executive, Folio, Ledger, Legal, Letter, Quarto, Statement, Tabloid. pick your fighter. πŸ₯Š
  • -size font-size β€” sets the size of the font for the text body in points.
  • -hsize heder-font-size β€” sets the size of the font for the header in points. (again, that's the original's spelling of the placeholder, we respect it 🫑) if zero size is specified, no header is printed.
  • -font font-set β€” specifies the font to be used for printing.

font-set is the filename part of the font, like Arial.ttf, or a font set defined in yudit.properties as yudit.font. for instance the Terminal font-set that contains ipag.ttf,unifont.ttf can be used if you have the following property in yudit.properties:

yudit.font.Terminal=ipag.ttf,unifont.ttf

by default ~/.yudit/fonts, yudit.fontpath and /usr/share/yudit/fonts are searched for font files. this option can be specified multiple times with font file names, or only once if a yudit font-set is used. iykyk. πŸ’œ


πŸ“ FILES πŸ“

  • ~/.yudit/yudit.properties and /usr/share/yudit/config/yudit.properties have yudit.fontpath and the font-sets defined.

like, that's where the whole font situation lives. go look, bestie. 🧚


🌈 SEE ALSO 🌈

  • uniconv

her sibling. go say hi. πŸ‘‹


πŸ‘‘ AUTHOR πŸ‘‘

this program was written by gaspar@yudit.org (Gaspar Sinai), based upon the TrueType curve conversion code of the ttf2pfa program that was written by Adrew Weeks. Last Updated Tokyo, 5 February, 2023. πŸ—Ό


and that's the page!! this one comes to you from the LINUX COMMANDS manual, dated Nov 25 1997 β€” yes, a genuine vintage baddie, still serving. no cap. πŸ’…βœ¨πŸ’–

πŸ“¦ where this page comes from