/usr/share/graphviz/lefty/lefty.psp is in graphviz 2.38.0-7.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | /BOX {
/boxy1 exch def /boxx1 exch def /boxy0 exch def /boxx0 exch def
boxx0 boxy0 moveto boxx1 boxy0 lineto
boxx1 boxy1 lineto boxx0 boxy1 lineto
closepath
} def
/SCP { stroke initclip newpath BOX clip newpath } def
/CL { stroke setrgbcolor } def
/DO { stroke } def
/NP { newpath } def
/FI { fill } def
/LI { moveto lineto } def
/CT { curveto } def
/AR {
/ang2 exch def /ang1 exch def
/radius exch def /y2x exch def /cy exch def /cx exch def
gsave
cx cy translate 1 y2x scale 0 0 radius ang1 ang2 arc stroke
grestore
} def
/ARF {
/ang2 exch def /ang1 exch def
/radius exch def /y2x exch def /cy exch def /cx exch def
gsave
cx cy translate 1 y2x scale 0 0 radius ang1 ang2 arc fill
grestore
} def
/TXT {
/texth exch def
/textf exch def
/textn exch def
/texts exch def
/textyj exch def /texty exch def
/textxj exch def /textx exch def
textf findfont texth scalefont dup setfont
/FontBBox get 1 get 1000 div texth mul /textbl exch def
/textth texth textn mul def /texttw 0 def
0 1 textn 1 sub {
texts exch get 0 get stringwidth pop
dup texttw gt { /texttw exch def } { pop } ifelse
} for
textyj (b) eq { /ty texty textth add textbl add def } if
textyj (d) eq { /ty texty textth add def } if
textyj (c) eq { /ty texty textth 2 div add def } if
textyj (u) eq { /ty texty def } if
/ty ty textbl sub def
textxj (l) eq { /tx textx def } if
textxj (c) eq { /tx textx texttw 2 div sub def } if
textxj (r) eq { /tx textx texttw sub def } if
0 1 textn 1 sub {
/ty ty texth sub def
texts exch get dup 0 get /ts exch def 1 get /tj exch def
tj (l) eq { tx ty moveto ts show } if
tj (n) eq {
tx texttw ts stringwidth pop sub 2 div add ty moveto ts show
} if
tj (r) eq {
tx texttw ts stringwidth pop sub add ty moveto ts show
} if
} for
} def
/colorimage where {
pop
} {
/bwproc {
rgbproc dup length 3 idiv string 0 3 0 5 -1 roll {
add 2 1 roll 1 sub dup 0 eq {
pop 3 idiv 3 -1 roll dup 4 -1 roll
dup 3 1 roll 5 -1 roll put 1 add 3 0
} {
2 1 roll
} ifelse
} forall
pop pop pop
} def
/colorimage {
pop pop /rgbproc exch def {bwproc} image
} bind def
} ifelse
|