[reportlab-users] Scaling PDF fonts to match windows

Ian Sparks reportlab-users@reportlab.com
Fri, 30 May 2003 17:01:59 -0400

As a test I wrote a line of text in Word and printed it.

Then using the adobe add-in to word I converted this to PDF and printed =
the resulting PDF.

The font sizes were different. They both were 12pt but they looked and =
printed different.

I discovered that for MS Sans Serif I had to multiply the font size by =
1.21 to get a near-exact match. For 8pt MS Sans Serif the multiplier was =
1.33 to get the match I wanted.

Question : Is there an algorithm for working out the scaling required or =
is this going to be trial and error for every font and size?

Anyone have a clue?

- Ian Sparks.