🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #894

Enhanced mode DOS font

#894
From: Bill Ferro
Date: Thu, 13 Dec 1990 20:19
32 lines
1636 bytes
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
Technical Details
Message-ID: <1990Dec13.201909.16137@progress.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!snorkelwacker.mit.edu!think.com!linus!progress!billf

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!snorkelwacker.mit.edu!think.com!linus!progress!billf
From: billf@progress.COM (Bill Ferro)
Newsgroups: comp.windows.ms.programmer
Subject: Enhanced mode DOS font
Keywords: font
Message-ID: <1990Dec13.201909.16137@progress.com>
Date: 13 Dec 90 20:19:09 GMT
Sender: news@progress.com (The News User)
Organization: Progress Software Corp., Bedford, MA
Lines: 32
Nntp-Posting-Host: billf