Article View: comp.windows.ms.programmer
Article #1805Re: Lining up rows and columns of characters
From: Curt Johnson
Date: Fri, 22 Mar 1991 20:50
Date: Fri, 22 Mar 1991 20:50
16 lines
1092 bytes
1092 bytes
In article <27561@uflorida.cis.ufl.EDU> jdb@reef.cis.ufl.edu (Brian K. W. Hook) writes: | Now, the problem is that when I do a TextOut or a DrawText, the letters do | not align themselves correctly vertically because of the fonts. This | becoming a very important issue...is there a way to make the characters | line up (assign 8x8 bit maps to everything?).... You want to use a font with fixed spacing. Try: SelectObject(hdc, GetStockObject(OEM_FIXED_FONT)); // or SYSTEM_FIXED_FONT or ANSI_FIXED_FONT For more information, see the Petzold book, pages 654-655. Curt Johnson == curt@cctb.wa.com
Technical Details
Message-ID:
<yva6g814c@cctb.wa.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!mips!cs.uoregon.edu!ogicse!milton!sumax!thebes!quick!cctb!curtReferences:
<27561@uflorida.cis.ufl.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!mips!cs.uoregon.edu!ogicse!milton!sumax!thebes!quick!cctb!curt From: curt@cctb.wa.com (Curt Johnson) Newsgroups: comp.windows.ms.programmer Subject: Re: Lining up rows and columns of characters Message-ID: <yva6g814c@cctb.wa.com> Date: 22 Mar 91 20:50:21 GMT References: <27561@uflorida.cis.ufl.EDU> Organization: Chemical Computer Thinking Battery, Redmond, WA Lines: 16