Changeset 9975 for trunk/src/gdi32/font.cpp
- Timestamp:
- Apr 2, 2003, 2:58:58 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gdi32/font.cpp
r9443 r9975 1 /* $Id: font.cpp,v 1.2 8 2002-11-29 13:46:03sandervl Exp $ */1 /* $Id: font.cpp,v 1.29 2003-04-02 12:58:58 sandervl Exp $ */ 2 2 3 3 /* … … 372 372 memcpy(&logFont, lpLogFont, sizeof(ENUMLOGFONTA)); 373 373 memset(logFont.elfScript, 0, sizeof(logFont.elfScript)); 374 memcpy(&textM.ntm etm, lpTextM, sizeof(textM.ntmetm));375 memset(&textM.ntm eFontSignature, 0, sizeof(textM.ntmeFontSignature));376 377 dprintf(("EnumFontProcExA %s height %d", logFont.elfLogFont.lfFaceName, textM.ntm etm.tmHeight));374 memcpy(&textM.ntmTm, lpTextM, sizeof(textM.ntmTm)); 375 memset(&textM.ntmFontSig, 0, sizeof(textM.ntmFontSig)); 376 377 dprintf(("EnumFontProcExA %s height %d", logFont.elfLogFont.lfFaceName, textM.ntmTm.tmHeight)); 378 378 379 379 int rc = proc(&logFont, &textM, arg3, lpEnumData->userData); … … 400 400 AsciiToUnicodeN((char *) lpLogFont->elfStyle, LogFont.elfStyle, LF_FACESIZE-1); 401 401 402 textM.ntm etm.tmHeight = lpTextM->tmHeight;403 textM.ntm etm.tmAscent = lpTextM->tmAscent;404 textM.ntm etm.tmDescent = lpTextM->tmDescent;405 textM.ntm etm.tmInternalLeading = lpTextM->tmInternalLeading;406 textM.ntm etm.tmExternalLeading = lpTextM->tmExternalLeading;407 textM.ntm etm.tmAveCharWidth = lpTextM->tmAveCharWidth;408 textM.ntm etm.tmMaxCharWidth = lpTextM->tmMaxCharWidth;409 textM.ntm etm.tmWeight = lpTextM->tmWeight;410 textM.ntm etm.tmOverhang = lpTextM->tmOverhang;411 textM.ntm etm.tmDigitizedAspectX = lpTextM->tmDigitizedAspectX;412 textM.ntm etm.tmDigitizedAspectY = lpTextM->tmDigitizedAspectY;413 textM.ntm etm.tmFirstChar = lpTextM->tmFirstChar;414 textM.ntm etm.tmLastChar = lpTextM->tmLastChar;415 textM.ntm etm.tmDefaultChar = lpTextM->tmDefaultChar;416 textM.ntm etm.tmBreakChar = lpTextM->tmBreakChar;417 textM.ntm etm.tmItalic = lpTextM->tmItalic;418 textM.ntm etm.tmUnderlined = lpTextM->tmUnderlined;419 textM.ntm etm.tmStruckOut = lpTextM->tmStruckOut;420 textM.ntm etm.tmPitchAndFamily = lpTextM->tmPitchAndFamily;421 textM.ntm etm.tmCharSet = lpTextM->tmCharSet;422 textM.ntm etm.ntmFlags = 0;423 textM.ntm etm.ntmSizeEM = 0;424 textM.ntm etm.ntmCellHeight = 0;425 textM.ntm etm.ntmAvgWidth = 0;426 memset(&textM.ntm eFontSignature, 0, sizeof(textM.ntmeFontSignature));427 428 dprintf(("EnumFontProcExW %s height %d", lpLogFont->elfLogFont.lfFaceName, textM.ntm etm.tmHeight));402 textM.ntmTm.tmHeight = lpTextM->tmHeight; 403 textM.ntmTm.tmAscent = lpTextM->tmAscent; 404 textM.ntmTm.tmDescent = lpTextM->tmDescent; 405 textM.ntmTm.tmInternalLeading = lpTextM->tmInternalLeading; 406 textM.ntmTm.tmExternalLeading = lpTextM->tmExternalLeading; 407 textM.ntmTm.tmAveCharWidth = lpTextM->tmAveCharWidth; 408 textM.ntmTm.tmMaxCharWidth = lpTextM->tmMaxCharWidth; 409 textM.ntmTm.tmWeight = lpTextM->tmWeight; 410 textM.ntmTm.tmOverhang = lpTextM->tmOverhang; 411 textM.ntmTm.tmDigitizedAspectX = lpTextM->tmDigitizedAspectX; 412 textM.ntmTm.tmDigitizedAspectY = lpTextM->tmDigitizedAspectY; 413 textM.ntmTm.tmFirstChar = lpTextM->tmFirstChar; 414 textM.ntmTm.tmLastChar = lpTextM->tmLastChar; 415 textM.ntmTm.tmDefaultChar = lpTextM->tmDefaultChar; 416 textM.ntmTm.tmBreakChar = lpTextM->tmBreakChar; 417 textM.ntmTm.tmItalic = lpTextM->tmItalic; 418 textM.ntmTm.tmUnderlined = lpTextM->tmUnderlined; 419 textM.ntmTm.tmStruckOut = lpTextM->tmStruckOut; 420 textM.ntmTm.tmPitchAndFamily = lpTextM->tmPitchAndFamily; 421 textM.ntmTm.tmCharSet = lpTextM->tmCharSet; 422 textM.ntmTm.ntmFlags = 0; 423 textM.ntmTm.ntmSizeEM = 0; 424 textM.ntmTm.ntmCellHeight = 0; 425 textM.ntmTm.ntmAvgWidth = 0; 426 memset(&textM.ntmFontSig, 0, sizeof(textM.ntmFontSig)); 427 428 dprintf(("EnumFontProcExW %s height %d", lpLogFont->elfLogFont.lfFaceName, textM.ntmTm.tmHeight)); 429 429 rc = proc(&LogFont, &textM, arg3, lpEnumData->userData); 430 430 SetFS(selTIB); // switch back to the saved FS selector
Note:
See TracChangeset
for help on using the changeset viewer.