Introduction

The PostScript programming language is designed to describe the layout of graphics and text on the printed page. This website provides online utilities that show examples in actual practice.

8.07.2009

PostScript :: setlinewidth

postscript postscript_setlinewidth

Operator: W setlinewidth

This operator sets the width of all lines to be stroked to width W, which must be specified in points.

Example:

setlinewidth

    %!
    newpath
    100 700 translate
    
    0 0 moveto 
    1 setlinewidth
    400 0 rlineto
    stroke
    
    0 -100 moveto 
    15 setlinewidth
    400 0 rlineto
    stroke
    
    showpage
    

postscript postscript_setlinewidth