title: Jimp.measureTextHeight exception:errorTypeError:Cannot read property 'lineHeight' of undefined
body: <pre><code>    let Jimp = require('jimp');
      var sizeOf = require('image-size');
      var mergeImg =require('merge-img');
      var dimensions = sizeOf('image/wall.png');
      console.log(dimensions.width, dimensions.height);        
      let image = new Jimp(dimensions.width, dimensions.height, 'green', (err,       image) =&gt; {
        if (err) throw err
      })        
      let message = 'Here the text is being added in the bottom center of the image.'
      let x = 10
      let y = 10  
  
      try{
      var textHeight=  Jimp.measureTextHeight(Jimp.FONT_SANS_32_BLACK, 'Some string', 100);        
      console.log("text height -"+textHeight);     
      }catch(ex)
      {
       console.log("error" + ex)
      }
      Jimp.loadFont(Jimp.FONT_SANS_16_BLACK)
        .then(font =&gt; {            
          image.print(font, x, y, message,dimensions.width)
          return image
        }).then(image =&gt; {
          let file = `new_name.${image.getExtension()}`
          return image.write("processed-image/out.png",function(err,    file){console.log(err)}) // save
        })
  </code></pre>
  
  <p>Jimp function measureTextHeight throwing exception. I am measuring text height on basis of width, to create an image and write text on it.</p>