I"ve noticed that on my Linux box and Windows, I get very different
sizes of fonts, when specifying the same size. I suspect that the
problem is that GTK and Windows have different ideas as to how many
pixels-per-inch my screen is. Personally, I'd much rather specify fonts
in pixel sizes, rather than points, but so be it. My question is: can I
find out how many ppi wxWindows thinks the screen is, so I can choose
the appropriate font size to give me the pixel size I know I want?
No but that would be a nice feature to request to be added to wxSystemSettings.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
> My question is: can I find out how many ppi wxWindows thinks the
> screen is, so I can
> choose the appropriate font size to give me the pixel size I know
> I want?
Would creating wxScreenDC and calling its GetPPI() method work (never
tried it myself)?
My question is: can I find out how many ppi wxWindows thinks the
screen is, so I can
choose the appropriate font size to give me the pixel size I know
I want?
Would creating wxScreenDC and calling its GetPPI() method work (never tried it myself)?
It does. I thought I remembered a PPI function somewhere but didn't look at the DC as it seemed to make sense for it to be a wxSystemSettings...
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!
> Would creating wxScreenDC and calling its GetPPI() method work (never
> tried it myself)?
Yup, that works great. I'd still like to be able to specify font sizes
in pixels, but this will do jsut fine. That method is not in the docs,
however...
thanks,
-CHris
···
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception