X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c299c3ab663257429983c24e6fb71450f3cf9f1..91b4bd63177025704dd39679a2a7c4198eeb7909:/src/os2/utils.cpp diff --git a/src/os2/utils.cpp b/src/os2/utils.cpp index 816ed527eb..c42628a26d 100644 --- a/src/os2/utils.cpp +++ b/src/os2/utils.cpp @@ -1218,6 +1218,7 @@ void wxOS2SetFont( char zStyle[30]; if (hWnd == NULLHANDLE) + return; // // The fonts available for Presentation Params are just three @@ -1227,20 +1228,29 @@ void wxOS2SetFont( switch(rFont.GetFamily()) { case wxSCRIPT: + strcpy(zFacename, "Script"); + break; + case wxDECORATIVE: case wxROMAN: - strcpy(zFacename,"Times New Roman"); + strcpy(zFacename,"Tms Rmn"); break; case wxTELETYPE: - case wxMODERN: strcpy(zFacename, "Courier"); break; + case wxMODERN: + strcpy(zFacename, "System VIO"); + break; + case wxSWISS: + strcpy(zFacename, "Helv"); + break; + case wxDEFAULT: default: - strcpy(zFacename, "Helvetica"); + strcpy(zFacename, "System VIO"); break; }