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