Article View: comp.lang.modula2
Article #279re: Using Text in Graphics
From: "The Doctor."
Date: Sat, 23 Sep 1989 14:55
Date: Sat, 23 Sep 1989 14:55
16 lines
1435 bytes
1435 bytes
When you're in a graphic mode, the bits stored in the display memory control
pixels directly. When you're in text mode, the bits are mapped by a character
generator into characters. The BIOS of a PC or AT will translate characters
into bit patterns when you do writes in graphic mode. Since the Window
module manipulates screen memory directly, it won't work in graphic mode. If
you don't have the window module included, writes (in IO) will show correctly
on the screen, but you don't have any cursor control. You would have to do
BIOS calls to position characters on the screen.
I have a module I wrote which can write "stroked" line segment characters
on the screen in graphic mode. You can scale the characters horizontaly and
vertically, and could create additional character fonts. If you'd like, I
could send you source (three files).
Tom Ruby
MSRS002@ECNCDC
Technical Details
Message-ID:
<INFO-M2%89092311073463@UCF1VM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!ginosko!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!ECNCDC.BITNET!MSRS002Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!ginosko!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!ECNCDC.BITNET!MSRS002
From: MSRS002@ECNCDC.BITNET ("The Doctor.")
Newsgroups: comp.lang.modula2
Subject: re: Using Text in Graphics
Message-ID: <INFO-M2%89092311073463@UCF1VM>
Date: 23 Sep 89 14:55:00 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Reply-To: Modula2 List <INFO-M2%UCF1VM.BITNET@PSUVM.PSU.EDU>
Organization: The Internet
Lines: 16