1. pv
  2. textext
  3. Issues
Issue #49 resolved

px vs pt

Anonymous created an issue


I am using textext for creation of figures for my thesis that I write with Latex. Thank you very much for coding that extension. Its beautiful! However...

After some testing I believe that textext is using px instead of pt as fontsize.

px: http://www.w3.org/TR/2003/REC-SVG11-20030114/coords.html#Units

pt: http://en.wikipedia.org/wiki/Point_%28typography%29

Just as information. 1px = 1/90 inch, 1pt = 1/72 inch.

When inserting textext without preamble file, the text ends up having 10px. When using a preamble file containing {{{


\renewcommand{\normalsize}{\fontsize{12}{10}\selectfont} }}} the text is 12px. (expect 10pt=12.5px and 12pt=15px, respectively)

The problem: If making figures and saving as .pdf and including unscaled in latex, the fontsize does not match.

Solutions that I can think of:

Change the textext code to consider the units and/or scale with 1.25 before inserting.

Tell users of textext clearly to use a Scale factor of 1.25 if they want their fonts in pt.

The use of px as unit in svg and inkscape is, in my opinion, not communicated clearly :(

Comments (1)

  1. Log in to comment