title: Can I get a string length in physical units (cm, pixels, dots) as printed by latex from python?
body: <p>I am using python to automatically create a huge table that I then want to pass to LaTeX. I would like to know a length of certain strings as they will be printed by LaTeX. Something like:</p>
  
  <pre><code>get_latex_length(string,font,fontsize)
  </code></pre>
  
  <p>Does such a thing exists?</p>