Vadim Zeitlin
59b7da02ff
Return wxFONTFAMILY_DEFAULT, not UNKNOWN, from wxFont::GetFamily().
...
Although returning wxFONTFAMILY_UNKNOWN when the font family is not recognized
makes more sense, it breaks a lot of existing code including all the
font-related code generated by DialogBlocks, so prefer to return
wxFONTFAMILY_DEFAULT instead -- which can't be confused for a valid font
family neither but can be passed to wxFont ctor or SetFamily() without
problems.
To ensure that this behaviour is correctly implemented by all ports, rename
the existing wxFont::GetFamily() to DoGetFamily() and call the new method from
wxFontBase::GetFamily() which adjusts the return value if needed.
Closes #12330 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-09-29 13:46:09 +00:00
..
2010-07-13 13:29:13 +00:00
2010-07-13 13:29:13 +00:00
2009-03-21 23:36:37 +00:00
2009-08-21 10:41:26 +00:00
2009-03-14 13:57:51 +00:00
2008-03-26 15:06:00 +00:00
2008-06-17 17:28:26 +00:00
2008-03-26 15:06:00 +00:00
2008-03-26 15:06:00 +00:00
2008-03-26 15:06:00 +00:00
2008-09-11 11:20:33 +00:00
2008-03-26 15:06:00 +00:00
2006-09-05 20:47:48 +00:00
2004-10-07 08:53:48 +00:00
2008-06-11 19:17:41 +00:00
2009-03-02 12:25:01 +00:00
2008-03-26 15:06:00 +00:00
2009-02-08 11:45:59 +00:00
2007-05-30 22:02:19 +00:00
2009-01-19 13:55:27 +00:00
2007-08-15 13:05:35 +00:00
2009-02-08 11:45:59 +00:00
2007-12-04 04:22:16 +00:00
2009-01-08 14:21:53 +00:00
2008-03-26 15:06:00 +00:00
2008-03-26 15:06:00 +00:00
2009-08-21 10:41:26 +00:00
2004-10-07 08:53:48 +00:00
2009-02-15 14:25:08 +00:00
2009-08-21 10:41:26 +00:00
2010-09-29 13:46:09 +00:00
2004-10-07 08:53:48 +00:00
2009-04-25 12:59:09 +00:00
2008-03-26 15:06:00 +00:00
2007-07-09 10:09:52 +00:00
2008-09-21 21:09:36 +00:00
2008-03-26 15:06:00 +00:00
2004-05-23 20:53:33 +00:00
2008-03-26 15:06:00 +00:00
2008-11-04 02:46:19 +00:00
2009-01-11 11:58:34 +00:00
2009-01-19 13:55:27 +00:00
2009-02-08 11:45:59 +00:00
2008-03-26 15:06:00 +00:00
2007-05-27 04:52:04 +00:00
2009-01-11 11:58:34 +00:00
2006-03-12 15:10:23 +00:00
2009-01-11 11:58:34 +00:00
2007-10-29 16:18:59 +00:00
2006-10-16 09:30:01 +00:00
2006-03-12 15:10:23 +00:00
2010-07-13 13:29:13 +00:00
2007-08-15 16:10:19 +00:00
2006-03-12 15:10:23 +00:00
2006-03-12 15:10:23 +00:00
2009-01-11 11:58:34 +00:00
2008-02-06 20:10:07 +00:00
2007-10-29 16:18:59 +00:00
2006-10-16 09:30:01 +00:00
2009-08-21 10:41:26 +00:00
2008-06-17 17:28:26 +00:00
2008-03-26 15:06:00 +00:00
2008-03-26 15:06:00 +00:00
2008-03-26 15:06:00 +00:00
2008-03-26 15:06:00 +00:00
2009-08-21 10:41:26 +00:00
2009-08-21 10:41:26 +00:00
2008-03-26 15:06:00 +00:00
2008-03-26 15:06:00 +00:00
2008-03-26 15:06:00 +00:00
2008-03-26 15:06:00 +00:00
2008-03-26 15:06:00 +00:00
2008-07-19 19:59:59 +00:00
2007-12-12 01:35:53 +00:00
2008-03-26 15:06:00 +00:00
2007-08-15 13:05:35 +00:00
2009-08-21 10:41:26 +00:00
2008-03-26 15:06:00 +00:00
2009-02-08 11:45:59 +00:00
2009-06-10 16:41:41 +00:00