billf@progress.COM (Bill Ferro) (12/14/90)
Does anyone know which font the enhanced mode DOS window uses??? I'm creating a "text" based window with FIXED fonts. The SYSTEM_FIXED_FONT is not my personal favorite and it does not support the upper 128 characters like the DOS window. I've tried the OEM_FIXED_FONT but a bug in the VGA driver causes my text output to look like double-height/double-width. This bug is exemplified in the following code: ... SelectObject(hDC,GetStockObject(OEM_FIXED_FONT)); SetMapMode(hDC,MM_ANSITROPIC); SetWindowExt(hDc,1,1); SetViewportExt(hDC,chWidth,chHeight); SetWindowOrg(hDC,1,1); TextOut(hDC,1,1,"Test String",11); ... Change OEM to SYSTEM and everything works OK. NOTE: This is a neat trick that allows my application to address the screen as an 80x25 grid. chWidth and chHeight are calculated from the TEXTMETRICS structure. I can now say TextOut(hdc,col,row,string,stringlen) and not have to worry. The coordinates are relative to 1. Changing SetWindowOrg to SetWindowOrg(hDC,0,0) will make them relative to 0. Thanks in advance... -bf -- Bill Ferro UUCP: mit-eddie!progress!billf Progress Software Corp. Internet: billf@progress.com 5 Oak Park Bedford, MA 01730