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