title: How to determine height and depth of a PostScript font?
body: <p>I'm looking for PostScript code that estimates a PostScript font's height (room for ascender) and depth (room for descender). Could a font's bounding box (<code>FontBBox</code>) be used for this?`</p>
  
  <p>Here is some background for my question: glyphs of a font are sitting on a baseline. Obviously glyphs with descenders will reach below the baseline and I want to know how far below the baseline descenders can reach such that I can provide sufficient space in a layout.</p>
  
  <p>I have seen <a href="https://stackoverflow.com/q/3618194/44082">PostScript code that renders a given string to check its dimension</a>. I'm rather interested in a general answer for a given font.</p>