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
..
2009-08-21 10:41:26 +00:00
2009-02-08 11:45:59 +00:00
2010-08-24 17:06:15 +00:00
2008-05-17 22:51:52 +00:00
2010-01-07 18:30:18 +00:00
2007-09-21 11:25:11 +00:00
2010-03-28 23:20:49 +00:00
2009-06-27 22:22:48 +00:00
2009-07-18 08:33:55 +00:00
2008-06-17 17:28:26 +00:00
2009-12-05 19:25:04 +00:00
2009-02-08 11:45:59 +00:00
2009-12-05 19:26:39 +00:00
2009-07-23 20:30:22 +00:00
2007-07-19 15:47:11 +00:00
2010-08-18 21:29:53 +00:00
2008-12-21 22:15:50 +00:00
2007-11-06 00:32:34 +00:00
2009-02-03 09:53:33 +00:00
2009-01-19 13:55:27 +00:00
2007-12-22 15:03:58 +00:00
2010-08-16 17:48:28 +00:00
2009-01-18 12:34:23 +00:00
2009-05-16 10:42:48 +00:00
2008-01-09 04:08:33 +00:00
2009-01-19 13:55:27 +00:00
2010-09-17 19:07:02 +00:00
2007-12-06 16:22:00 +00:00
2009-08-21 10:41:26 +00:00
2009-08-21 10:41:26 +00:00
2007-12-06 16:22:00 +00:00
2009-10-09 17:39:19 +00:00
2007-11-05 22:31:24 +00:00
2009-11-15 13:39:05 +00:00
2010-05-21 20:13:49 +00:00
2010-05-21 20:13:49 +00:00
2009-10-22 11:36:35 +00:00
2010-04-25 21:33:16 +00:00
2010-05-29 10:35:47 +00:00
2008-08-29 15:46:48 +00:00
2010-05-07 06:45:48 +00:00
2010-03-16 00:23:57 +00:00
2010-09-29 13:46:09 +00:00
2007-11-06 00:32:34 +00:00
2009-09-24 12:36:34 +00:00
2008-02-01 04:51:34 +00:00
2007-03-07 22:12:47 +00:00
2010-05-05 12:20:08 +00:00
2010-05-30 17:45:40 +00:00
2009-03-14 01:24:45 +00:00
2010-04-24 15:08:00 +00:00
2009-01-19 13:55:27 +00:00
2007-11-22 06:12:56 +00:00
2010-08-18 22:48:28 +00:00
2008-08-29 15:46:48 +00:00
2008-06-17 17:28:26 +00:00
2009-08-21 10:41:26 +00:00
2009-08-21 10:41:26 +00:00
2010-03-30 16:14:11 +00:00
2009-06-03 22:33:32 +00:00
2009-12-05 19:25:04 +00:00
2009-08-21 10:41:26 +00:00
2009-08-21 10:41:26 +00:00
2009-02-08 20:51:44 +00:00
2009-11-14 10:58:31 +00:00
2009-12-05 19:25:04 +00:00
2009-11-10 17:36:53 +00:00
2009-08-21 10:41:26 +00:00
2009-12-05 19:57:58 +00:00
2006-12-09 14:52:59 +00:00
2008-02-02 21:33:51 +00:00
2009-02-08 22:21:24 +00:00
2010-05-26 17:37:55 +00:00
2009-09-05 12:39:12 +00:00
2010-07-13 13:29:13 +00:00
2009-12-26 16:36:39 +00:00
2009-02-13 10:10:36 +00:00
2010-08-21 09:53:25 +00:00
2009-08-21 10:41:26 +00:00
2010-08-21 09:54:30 +00:00