pango-view1
Pango text viewer
Usage
pango-view [OPTIONS ...]
FILE
Overview
pango-view formats a text using Pango, with options to exercise most of Pango's layout features.
Options
-
-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.
Options
-
--annotate=FLAGS -
Annotate the output. Comma-separated list of gravity, progression, baselines, layout, line, run, cluster, char, glyph, caret, slope
Options
-
--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.
History
- Arch Linux 2026-11-01: the text shown here
- Debian 13 (Trixie)
- Debian 12 (Bookworm)
- Debian 11 (Bullseye)
- Debian 10 (Buster)
- Debian 9 (Stretch)
- Debian 8 (Jessie)
- Debian 7 (Wheezy)
- Debian 6.0 (Squeeze)
--align since Debian 9 (Stretch);
--annotate since Debian 12 (Bookworm);
--antialias since Debian 11 (Bullseye);
--backend since Debian 9 (Stretch);
--background since Debian 9 (Stretch);
--dpi since Debian 9 (Stretch);
--ellipsize since Debian 9 (Stretch);
--font since Debian 9 (Stretch);
--foreground since Debian 9 (Stretch);
--gravity since Debian 9 (Stretch);
--gravity-hint since Debian 9 (Stretch);
--header since Debian 9 (Stretch);
--height since Debian 9 (Stretch);
--help since Debian 9 (Stretch);
--help-all since Debian 9 (Stretch);
--help-cairo since Debian 9 (Stretch);
--hint-metrics since Debian 11 (Bullseye);
--hinting since Debian 9 (Stretch);
--indent since Debian 9 (Stretch);
--justify since Debian 9 (Stretch);
--justify-last-line since Debian 12 (Bookworm);
--language since Debian 9 (Stretch);
--line-spacing since Debian 11 (Bullseye);
--markup since Debian 9 (Stretch);
--no-auto-dir since Debian 9 (Stretch);
--no-display since Debian 9 (Stretch);
--output since Debian 9 (Stretch);
--pango-units since Debian 12 (Bookworm);
--pixels since Debian 9 (Stretch);
--rotate since Debian 9 (Stretch);
--rtl since Debian 9 (Stretch);
--runs since Debian 9 (Stretch);
--serialize-to since Debian 12 (Bookworm);
--serialized since Debian 12 (Bookworm);
--single-par since Debian 9 (Stretch);
--spacing since Debian 11 (Bullseye);
--subpixel-order since Debian 11 (Bullseye);
--subpixel-positions since Debian 11 (Bullseye);
--text since Debian 9 (Stretch);
--version since Debian 9 (Stretch);
--waterfall since Debian 9 (Stretch);
--width since Debian 9 (Stretch);
--wrap since Debian 9 (Stretch);
-h since Debian 9 (Stretch);
-n since Debian 9 (Stretch);
-o since Debian 9 (Stretch);
-q since Debian 9 (Stretch);
-t since Debian 9 (Stretch);
-w since Debian 9 (Stretch).
--pangorc until Debian 7 (Wheezy).