title: Working with text in pdfkit
body: <p>How to set characterSpacing from pt/px?</p>
  
  <p>How to set lineHeight from pt/px?</p>
  
  <p>I just can not understand how to translate from points or pixels into a value for pdfkit. Help me please</p>
  
  <p><a href="https://github.com/devongovett/pdfkit" rel="nofollow noreferrer">https://github.com/devongovett/pdfkit</a></p>
  
  <hr>
  
  <p>I need to convert html text to pdf. And you need to match the letter spacing and the line spacing.</p>
  
  <blockquote>
    <p>CSS: Font - 18pt; LineHeight - 1.4 (not pt); letterSpacing - 2pt;</p>
  </blockquote>
  
  <p>How to set this in pdfkit?</p>
  
  <pre><code>doc.text(element.content, element.left, element.top, {
       width            : element.width,
       align            : element.properties.textAlign,       
       characterSpacing : 2, //???
       lineBreak        : false,
       lineGap          : 1.4, //????
   });
  </code></pre>