<h1>FAQs</h1><h2>How do I center text in a rectangle?</h2><p>I often find it necessary, especially in printouts, to center a string of text in a rectangle. The really great thing about this routine is that the text is drawn in the current mode. In other words, you may set the text mode (as in TextMode ( _srcOr) ) so that the text comes out transparent. In this way, any background will show through the printed items.</p>
<pre>
local fn getWdHt ( r as ^rect , @wdPtr& , @htPtr& )