Fixing font utilities

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13788 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2002-01-24 23:24:32 +00:00
parent 59d77e8381
commit e1146627e2
4 changed files with 42 additions and 27 deletions

View File

@@ -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;
}