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