This function creates opens pdf graphics device writing to an temporary file,
then utilizes grid::convertWidth()
and grid::convertHeight()
to calculate
lines per inch and characters per inch for the specified font family, size, and
line height.
An error is thrown if the font is not monospaced (determined by comparing
the effective widths of the M
and .
glyphs).