grops(1) General Commands Manual grops(1) (NAME) grops - PostScript groff (SYNOPSIS) grops [-glm] [-b brokenness-flags] [-c num-copies] [-F font-directory] [-I inclusion-directory] [-p paper-format] [-P prologue-file] [-w rule-thickness] [file ...] grops --help grops -v grops --version (DESCRIPTION) PostScript roff troff(1) PostScript . grops groff(1) "-T ps" . ( ps .) -P groff grops . file file "-" grops . . file grops ( DSC) . DSC . grops " (Font installation)" . (OPTIONS) --help -v --version . -b n (spoolers) . grops PostScript 2 (%LanguageLevel 2) 3.0 (Document Structuring Conventions) . . n grops . n 0 grops broken DESC grops . 1 %%BeginDocumentSetup %%EndDocumentSetup TranScript %%EndProlog %%Page . 2 %! pageview . 4 %%Page %%Trailer %%EndProlog %%BeginDocument %%EndDocument . 8 %!PS-Adobe-3.0 %!PS-Adobe-2.0 PostScript Newsprint . 16 ( %%DocumentMedia PostScript setpagedevice). groff 1.18.1 PostScript 2 (%LanguageLevel 2) EPS " (Encapsulated PostScript)" . -c n n . -F dir dir/devname PostScript name ps . -g PostScript . . U.S. letter A4 . -I dir dir \X'ps: file' \X'ps: import' . -I dir . "-I ." . -l (portrait) (landscape) . -m (manual feed) . -p fmt papersize paperlength paperwidth DESC . fmt papersize groff_font(5) . -P prologue prologue groff PostScript ( " (FILES)" ) GROPS_PROLOGUE . -w n () n em . 40 (0.04 em) . (USAGE) grops troff(1) groff_out(5) . . 72 sizescale . groff_font(5) . internalname psname PostScript psname . : encoding enc-file PostScript enc-file pschar code pschar PostScript code 0 255 . # . PostScript . \N troff groff . PostScript PostScript . grops groff space ( ) PostScript . grops PostScript 256 . enc-file ( ) 256 grops . grops "" (downloading) . PFA . pfbtops(1) 1 PFB . download psname file psname PostScript file . # (tab) . file groff . download . Adobe grops . download . . Garamond Garamond-Outline Garamond ( Garamond PaintType ) Garamond Garamond-Outline PostScript . grops Garamond-Outline Garamond . %!PS-Adobe-3.0 Resource-Font %%DocumentNeededResources: font Garamond %%EndComments %%IncludeResource: font Garamond Garamond Garamond-Outline download . %%DocumentSuppliedResources . grops %%DocumentFonts . %%DocumentNeededResources %%DocumentSuppliedResources %%IncludeResource %%BeginResource %%EndResource ( %%DocumentNeededFonts %%DocumentSuppliedFonts %%IncludeFont %%BeginFont %%EndFont ) . (stroke) (fill) . "rgb" setrgbcolor "cmy" "cmyk" setcmykcolor "gray" setgray. setcmykcolor PostScript 2 (%LanguageLevel 2) . (Typefaces) R I B BI 1 4 . A BM C H HN N P T . AR AvantGarde-Book AI AvantGarde-BookOblique AB AvantGarde-Demi ABI AvantGarde-DemiOblique BMR Bookman-Light BMI Bookman-LightItalic BMB Bookman-Demi BMBI Bookman-DemiItalic CR Courier CI Courier-Oblique CB Courier-Bold CBI Courier-BoldOblique HR Helvetica HI Helvetica-Oblique HB Helvetica-Bold HBI Helvetica-BoldOblique HNR Helvetica-Narrow HNI Helvetica-Narrow-Oblique HNB Helvetica-Narrow-Bold HNBI Helvetica-Narrow-BoldOblique NR NewCenturySchlbk-Roman NI NewCenturySchlbk-Italic NB NewCenturySchlbk-Bold NBI NewCenturySchlbk-BoldItalic PR Palatino-Roman PI Palatino-Italic PB Palatino-Bold PBI Palatino-BoldItalic TR Times-Roman TI Times-Italic TB Times-Bold TBI Times-BoldItalic . ZCMI ZapfChancery-MediumItalic : S (Symbol) PostScript ZD Zapf Dingbats SS ( / slanted symbol) Symbol EURO ZDR Zapf Dingbats ( ). \N . PostScript groff download . grops grohtml(1) gropdf(1) grotty(1) . CSH Hei CSS Song CTH Hei CTS Song JPG (Gothic) JPM (Mincho) KOG (Gothic) KOM (Mincho) (Device extension commands) grops device groff \X roff "ps:" . \X'ps: exec code' PostScript code . PostScript currentpoint code groff \X . x y . (procedure u) groff ( ). .nr x 1i \X'ps: exec \nx u 0 rlineto stroke' . code . def mdef . "\X'ps: mdef n'" . . \Y code . .nr x 1i .de y ps: exec \nx u 0 rlineto stroke .. \Yy . "nx"-- "y" -- "1i" groff u PostScript . grops PostScript . save restore . . \X'ps: file name' exec PostScript name . \X'ps: def code' PostScript code . \X . \X code . exec . \Y code . \X'ps: mdef n code' def code n . grops code PostScript . \X'ps: import file llx lly urx ury width [height]' PostScript file . llx lly urx ury (bounding box) PostScript . : llx lly x y urx ury x y width height groff . \X . x y . \X troff width height . PostScript Adobe %%BoundingBox groff psbb . PSPIC PostScript groff_tmac(5) . \X'ps: invis' \X'ps: endinvis' \X . troff grops \X . gxditview \[em] X11 . .char \[em] \X'ps: invis'\ \Z'\v'-.25m'\h'.05m'\D'l .9m 0'\h'.05m''\ \X'ps: endinvis'\[em] gxditview \[em] grops \[em] ( Xps.tmac grops gxditview ). PostScript BPhook "ps: def" "ps: mdef" ( groff ) . "DRAFT" . .de XX ps: def /BPhook { gsave .9 setgray clippath pathbbox exch 2 copy .5 mul exch .5 mul translate atan rotate pop pop /NewCenturySchlbk-Roman findfont 200 scalefont setfont (DRAFT) dup stringwidth pop -.5 mul -70 moveto show grestore } def .. .devicem XX (square linecaps) (mitered linejoins) grops . .de XX ps: def /BPhook { 2 setlinecap 0 setlinejoin } def .. .devicem XX ( ("0 setlinecap") .) (Encapsulated PostScript) grops (bounding box) . groff2eps EPS . #!/bin/sh groff -P-b16 "$1" > "$1".ps gs -dNOPAUSE -sDEVICE=bbox -- "$1".ps 2> "$1".bbox sed -e "/^%%Orientation/r $1.bbox" \ -e "/^%!PS-Adobe-3.0/s/$/ EPSF-3.0/" "$1".ps > "$1".eps rm "$1".ps "$1".bbox "groff2eps foo" foo foo.eps . (TrueType and other font formats) TrueType grops Type 42 (wrapper) PostScript PFA pfbtops(1) . Type 42 PostScript Ghostscript -- gs(1). FontForge (outline font) . Roboto Slab Serif groff . MAP=/usr/share/groff/1.24.1/font/devps/generate/text.map TTF=/usr/share/fonts/truetype/roboto/slab/RobotoSlab-Regular.ttf BASE=$(basename "$TTF") INT=${BASE%.ttf} PFA=$INT.pfa AFM=$INT.afm GFN=RSR DIR=$HOME/.local/groff/font mkdir -p "$DIR"/devps fontforge -lang=ff -c "Open(\"$TTF\");\ Generate(\"$DIR/devps/$PFA\");" afmtodit "$DIR/devps/$AFM" "$MAP" "$DIR/devps/$GFN" printf "$BASE\t$PFA\n" >> "$DIR/devps/download" fontforge afmtodit . . printf ".ft RSR\nHello, world!\n" | groff -F "$DIR" > hello.ps ( Roboto Slab "Bold" "Light" "Thin" ) GROFF_FONT_PATH -F . (Font installation) groff install-font.bash troff grops . " (FILES)" . grops . o groff . PostScript 1 PFA PostScript 42 AFM . PFA . %!PS-AdobeFont-1.0: PFB . PFB pfbtops(1) groff PFA . TrueType fontforge . 42 . %!PS-TrueTypeFont TrueType . PostScript ( TrueType ). BrushScriptX-Italic CTAN PFA . o AFM afmtodit(1) groff . $ afmtodit BrushScriptX-Italic.afm text.map BSI BrushScriptX-Italic.afm groff BSI . (roman) (bold) (italic) - (bold-italic) ( "italic" "oblique" "slanted" ) R B I BI groff groff . groff Times : T groff TR TB TI TBI. BrushScriptX : italic. o () groff devps groff . GROFF_FONT_PATH " (ENVIRONMENT)" troff(1) . groff AFM . o devps/download PostScript grops . download . download ( " (FILES)" ) . PostScript grops internalname groff . ( .) download . BrushScriptX-Italic->BrushScriptX-Italic.pfa (tab) -> . o . printf "\\f[BSI]Hello, world!\n" | groff -T ps >hello.ps see hello.pdf (Old fonts) 1.19.2 groff 35 2 Adobe . 314 (kerning pairs) 229 . /usr/share/ groff/1.24.1/oldfont/devps . grops ( ) : -F grops $ groff -Tps -P-F -P/usr/share/groff/1.24.1/oldfont ... groff $ GROFF_FONT_PATH=/usr/share/groff/1.24.1/oldfont \ groff -Tps ... . (Exit status) grops 0 2 1 . (ENVIRONMENT) GROFF_FONT_PATH . troff(1) groff_font(5) . GROPS_PROLOGUE foo grops prologue foo ( ) . -P . SOURCE_DATE_EPOCH ( ) . gmtime(3) asctime(3) PostScript . TZ tzset(3) . SOURCE_DATE_EPOCH (UTC) . (FILES) /usr/share/groff/1.24.1/font/devps/DESC ps . /usr/share/groff/1.24.1/font/devps/F F ps . /usr/share/groff/1.24.1/font/devps/download PostScript ( ) . /usr/share/groff/1.24.1/font/devps/prologue PostScript . /usr/share/groff/1.24.1/font/devps/text.enc PostScript 1 encoding ps . /usr/share/groff/1.24.1/tmac/ps.tmac ps . ps troffrc . /usr/share/groff/1.24.1/tmac/pspic.tmac PSPIC groff_tmac(5) . troffrc . /usr/share/groff/1.24.1/tmac/psold.tmac ISO Latin-1 groff eth (dh) thorn (th) PostScript . /usr/share/doc/groff-1.24.1/examples/install-font.bash Peter Schaffter mom TrueType (.ttf) OpenType (.otf) PostScript 1 (.pfa .pfb) groff . "bash install-font.bash -H" . grops "gropsXXXXXX" groff(1) . (SEE ALSO) PostScript (DSC) afmtodit(1), groff(1), troff(1), pfbtops(1), groff_char(7), groff_font(5), groff_out(5), groff_tmac(5) groff 1.24.1 2026-03-15 grops(1)