# [pstricks] How work psdiabox, pstriabox, psovalbox and pscircle

Herbert Voss LaTeX at zedat.fu-berlin.de
Sat Jul 1 18:17:42 CEST 2006

ARno wrote:
> I am working on a graphical pstricks generator
> (http://latexdraw.sourceforge.net/)
> and I want to want know how the psdiabox, pstriabox, psovalbox and
> pscircle commands are made; i.e., how the width and the height of the
> triangle, the diamond, the circle and of the ellipse are computed. I am
> not conversant with the code of the pstricks.tex file.

The object is placed into a TeX box and the width
\wd\hbox and height \ht\hbox and \dp\hbox are
passed to PostScript to draw the border lines.

It is _not_ possible to get the width and height
without knowing the font size and font shape.

Herbert