[wxPython] wxFont mea culpa

2. 100% zoom in print preview
Robin wrote:
I think it means that the DC is scaled such that the width of the preview
window is equivallent to the width of the printer.

Yes, at 100% the "preview dc" is equivalent to to the printer dc,
but not equal.
Some numbers: my printer, portrait, paper A4
printer dc: 2400 x 3282 pixels
preview 100% : 746 x 1021 pixels
preview 50% : 373 x 510 pixels

The 100% scaling means the PHYSICAL size is the same. 2400 x 3282 pixels at
300dpi is 8 x 10.94 inches. That's roughly A4 paper with a small margin.

Your Windows desktop, on the other hand, is set for 96 dpi. 8 inches at 96
dpi is about 760 pixels. An inch on your printer takes 3 times as many
pixels as an inch on your screen. That's the difference.

It is interesting to notice that these numbers are for wxPython 2.3.3pre6.
Using wxPython 2.3.2.1, I get the following values:
printer dc: 2400 x 3282 pixels
preview 100% : 995 x 1361 pixels
preview 50% : 497 x 680 pixels

Is this on the exact same system? Did you change the system's default font?
Here Python thinks your screen is 120 dpi. That is correct if you select
"large fonts" in Windows.

When I wrote my preview in vb, I arrange myself so that
the 100% preview canvas has the same size as the printer page.

Do you mean "size" in pixels, or "size" in inches/twips? Python is setting
the two DC's to the same physical size, which is exactly what VB does by
default. You only see the difference because wxWindows defaults to showing
you the size in pixels, whereas VB defaults to twips.

ยทยทยท

On Tue, 17 Sep 2002 18:17:05 +0200. "Jean-Michel Fauth" <jmfauth@bluewin.ch> wrote:

--
- Tim Roberts, timr@probo.com
  Providenza & Boekelheide, Inc.