wxMac doesn't set m_font in wxWindow ctor anymore
Vaclav Slavik
vslavik at fastmail.fm
Sun Mar 2 02:57:44 PST 2008
Hi,
I changed wxMac code to not require setting m_font to default GUI font
in wxWindow constructor. This makes it possible to use the usual
mechanism (use m_font if valid, otherwise query
GetDefaultAttributes()) in GetFont(). This in turn makes correct
fonts handling easier (or in some cases, possible at all) for
controls with different default font (e.g. DataBrowser).
The reason given in code for setting m_font was that it's needed for
its encoding, apparently used to construct strings. This won't be
needed once we remove ANSI build for good, as far as I can tell, but
in the meantime, I simply changed the code to use GetFont() instead
of m_font.
I tried to fix all places, but if I missed something, the fix is
simple: just replace "m_font" with "GetFont()" in the offending code.
Thanks,
Vaclav
--
PGP key: 0x465264C9, available from http://pgp.mit.edu/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.wxwidgets.org/pipermail/wx-dev/attachments/20080302/4151fe1c/attachment.pgp
More information about the wx-dev
mailing list