PANGO-VIEW(1)

okay bestie, welcome to PANGO-VIEW(1) β€” the Pango text viewer from the Pango commands manual. This is your group-chat cheat sheet, and yes, every flag is invited to the party πŸ’–

πŸŽ€ NAME πŸŽ€

pango-view β€” Pango text viewer.

✨ SYNOPSIS ✨

Run it like this, bb:

pango-view [OPTIONS...] FILE

🌸 DESCRIPTION 🌸

So like, pango-view formats a text using Pango, and it has options that let you exercise most of Pango's layout features. It’s giving β€œlayout lab, but make it cute” πŸ§ͺπŸ’…

πŸ’… HELP OPTIONS πŸ’…

Need the tea? These are the help exits:

  • -h, --help β€” Show help options.
  • --help-all β€” Show all help options.
  • --help-cairo β€” Show help for options understood by the cairo backend.
  • --version β€” Print the command's version and exit.

πŸ¦‹ CAIRO BACKEND OPTIONS πŸ¦‹

Only the cairo backend wants the spotlight here:

  • --annotate=FLAGS β€” Annotate the output. FLAGS is a comma-separated list of gravity, progression, baselines, layout, line, run, cluster, char, glyph, caret, slope.

🌈 APPLICATION OPTIONS 🌈

Main character options, incoming β€” all the levers you can pull:

  • --no-auto-dir β€” No layout direction according to contents.
  • --backend=cairo/xft/ft2 β€” Pango backend to use for rendering (default: cairo).
  • --background=red/#rrggbb/#rrggbbaa/transparent β€” Set the background color.
  • -q, --no-display β€” Do not display (just write to file or whatever).
  • --dpi=number β€” Set the resolution.
  • --align=left/center/right β€” Set text alignment.
  • --ellipsize=start/middle/end β€” Set ellipsization mode.
  • --font=description β€” Set the font description.
  • --foreground=red/#rrggbb/#rrggbbaa β€” Set the text color.
  • --gravity=south/east/north/west/auto β€” Set base gravity: glyph rotation.
  • --gravity-hint=natural/strong/line β€” Set gravity hint.
  • --header β€” Display the options in the output.
  • --height=+points/-numlines β€” Set height in points (positive) or number of lines (negative) for ellipsizing.
  • --hinting=none/auto/slight/medium/full β€” Set hinting style.
  • --antialias=none/gray/subpixel β€” Set antialiasing.
  • --hint-metrics=on/off β€” Set hint metrics.
  • --subpixel-positions β€” Set subpixel positioning.
  • --subpixel-order=rgb/bgr/vrgb/vbgr β€” Set subpixel order.
  • --indent=points β€” Set paragraph indentation (in points).
  • --spacing=points β€” Set line spacing (in points).
  • --line-spacing=factor β€” Set spread factor for line height.
  • --justify β€” Stretch paragraph lines to be justified.
  • --justify-last-line β€” Justify the last line of the paragraph.
  • --language=en_US/etc β€” Set language to use for font selection.
  • --margin=CSS-style numbers in pixels β€” Set the margin on the output in pixels.
  • --markup β€” Interpret text as Pango markup.
  • -o, --output=file β€” Save rendered image to output file.
  • --pixels β€” Use pixel units instead of points (sets dpi to 72).
  • --pango-units β€” Use Pango units instead of points.
  • --rtl β€” Set base direction to right-to-left.
  • --rotate=degrees β€” Set angle at which to rotate results,
  • -n, --runs=integer β€” Run Pango layout engine this many times.
  • --single-par β€” Enable single-paragraph mode.
  • -t, --text=string β€” Text to display (instead of a file).
  • --waterfall β€” Create a waterfall display.
  • -w, --width=points β€” Width in points to which to wrap lines or ellipsize.
  • --wrap=word/char/word-char β€” Text wrapping mode (needs a width to be set).
  • --serialized=FILE β€” Create layout from a serialized file,
  • --serialize-to=FILE β€” Serialize result to a file.

Signed off with the Pango source/version line and the PANGO-VIEW(1) date from your local manpage build β€” mwah, slay, and happy rendering πŸ’‹βœ¨

πŸ“¦ where this page comes from