[wxPython-users] What is wx.Font pointSize?
Christopher Barker
Chris.Barker at noaa.gov
Tue Nov 6 22:21:37 PST 2007
Peter Damoc wrote:
> Some more details... I was trying to study for the implementation of a
> "drawn" toolkit. Basic controls. I started with the buttons.
> I looked at the best, Apple HIG... I tried to use their suggestions of
> 13 points font... BUT the buttons looked huge.
I think you've hit one of my pet peeves -- systems that let you specify
font size in "points", where other stuff is in pixels. The truth is that
points make no sense in computers -- you need to know how many dpi your
display is -- but then, if you project on a big screen, do you want
your fonts 13/72 of an inch tall? of course not!
In your case, if the font is huge, it's probably because the system has
the wrong dpi setting. Until we get fully scalable everything (has Apple
achieved that?), try to use a pixel size to set fonts if you can.
> How would one draw consistent looking buttons, how would one align the
> text in these buttons.
That's a bit tough, as wx only gives you crude DC.GetTextExtent -- and
you can't draw text lined up at the baseline either.
Does GraphicsContext help this???
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list