X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a4353f07c6b37712634d4b2d86527b647a08044f..aa99e0cd2242db04fe1f9bb7d91aea545def2422:/src/os2/fontutil.cpp diff --git a/src/os2/fontutil.cpp b/src/os2/fontutil.cpp index 8b4d684739..a1347e8a8e 100644 --- a/src/os2/fontutil.cpp +++ b/src/os2/fontutil.cpp @@ -6,7 +6,7 @@ // Created: 01.03.00 // RCS-ID: $Id$ // Copyright: (c) 1999 Vadim Zeitlin -// Licence: wxWindows license +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// #define DEBUG_PRINTF(NAME) { static int raz=0; \ printf( #NAME " %i\n",raz); fflush(stdout); \ @@ -39,6 +39,7 @@ #include "wx/fontutil.h" #include "wx/fontmap.h" +#include "wx/encinfo.h" #include "wx/tokenzr.h" @@ -391,7 +392,6 @@ void wxFillLogFont( // font, so now we need to generate an ID // long lNumLids = ::GpiQueryNumberSetIds(*phPS); - long lGpiError; if(lNumLids ) { @@ -464,17 +464,12 @@ void wxOS2SelectMatchingFontByName( ) { int i; - int nDiff0; int nPointSize; - int nDiff; int nIs; - int nMinDiff; int nMinDiff0; - int nApirc; int anDiff[16]; int anMinDiff[16]; int nIndex = 0; - STR8 zFn; char zFontFaceName[FACESIZE]; wxString sFaceName; USHORT usWeightClass; @@ -487,7 +482,7 @@ void wxOS2SelectMatchingFontByName( switch (pFont->GetFamily()) { case wxSCRIPT: - sFaceName = wxT("Script"); + sFaceName = wxT("Tms Rmn"); break; case wxDECORATIVE: @@ -495,15 +490,15 @@ void wxOS2SelectMatchingFontByName( break; case wxROMAN: - sFaceName = wxT("Times New Roman"); + sFaceName = wxT("Tms Rmn"); break; case wxTELETYPE: - sFaceName = wxT("Courier New") ; + sFaceName = wxT("Courier") ; break; case wxMODERN: - sFaceName = wxT("Courier New") ; + sFaceName = wxT("System VIO") ; break; case wxSWISS: @@ -640,12 +635,12 @@ void wxOS2SelectMatchingFontByName( // pFattrs->usRecordLength = sizeof(FATTRS); // Sets size of structure pFattrs->lMatch = pFM[nIndex].lMatch; // Force match - pFattrs->idRegistry = 0; // Registry - pFattrs->usCodePage = 0; // Match proper CodePage - pFattrs->fsFontUse = 0; // Use only outline fonts - pFattrs->fsType = 0; // Use only outline fonts - pFattrs->lMaxBaselineExt = 0; // Use only outline fonts - pFattrs->lAveCharWidth = 0; // Use only outline fonts + pFattrs->idRegistry = 0; + pFattrs->usCodePage = 0; + pFattrs->fsFontUse = 0; + pFattrs->fsType = 0; + pFattrs->lMaxBaselineExt = 0; + pFattrs->lAveCharWidth = 0; wxStrcpy(pFattrs->szFacename, pFM[nIndex].szFacename); if (pFont->GetWeight() == wxNORMAL) pFattrs->fsSelection = 0;