title: Programmatically determine text size in ImageMagick
body: <p>I know one way to determine the text of a string, in a particular font and font size, without line breaks: use <code>convert</code> to create a new image containing only that string, and then examine the created image for its dimensions. <em>In other words, I will be extremely surprised if this is the best way.</em></p>
  
  <p>What is the preferred way to calculate what the dimensions of a one-line string/font/font size?</p>