font family is found (and doesn't crash then)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1454
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
"ScreenItalic", "i",
"ScreenSlant", "o",
"ScreenItalic", "i",
"ScreenSlant", "o",
"ScreenDefaultBase", "misc-fixed",
"ScreenDefaultBase", "misc-fixed",
+*/
+ "ScreenDefaultBase", "*-times",
+
"ScreenRomanBase", "*-times",
"ScreenDecorativeBase", "*-helvetica",
"ScreenModernBase", "*-courier",
"ScreenRomanBase", "*-times",
"ScreenDecorativeBase", "*-helvetica",
"ScreenModernBase", "*-courier",
- if (strcmp(internal,"-${ScreenDefaultBase}${ScreenStdSuffix}") == 0)
+ if ((strcmp(internal,"-${ScreenDefaultBase}${ScreenStdSuffix}") == 0) &&
+ (strcmp(names[0], "Default") != 0))
{
/* we did not find any font name in the standard list.
this can (hopefully does) mean that someone supplied
{
/* we did not find any font name in the standard list.
this can (hopefully does) mean that someone supplied
"ScreenItalic", "i",
"ScreenSlant", "o",
"ScreenItalic", "i",
"ScreenSlant", "o",
"ScreenDefaultBase", "misc-fixed",
"ScreenDefaultBase", "misc-fixed",
+*/
+ "ScreenDefaultBase", "*-times",
+
"ScreenRomanBase", "*-times",
"ScreenDecorativeBase", "*-helvetica",
"ScreenModernBase", "*-courier",
"ScreenRomanBase", "*-times",
"ScreenDecorativeBase", "*-helvetica",
"ScreenModernBase", "*-courier",
- if (strcmp(internal,"-${ScreenDefaultBase}${ScreenStdSuffix}") == 0)
+ if ((strcmp(internal,"-${ScreenDefaultBase}${ScreenStdSuffix}") == 0) &&
+ (strcmp(names[0], "Default") != 0))
{
/* we did not find any font name in the standard list.
this can (hopefully does) mean that someone supplied
{
/* we did not find any font name in the standard list.
this can (hopefully does) mean that someone supplied