[comp.lang.modula2] Using Text in Graphics

V065NMMA@UBVMS.BITNET ("D. THIERMAN") (09/23/89)

I need some help. I'm writing a simple program in JPI Modula2 v. 1.17 that
plots points on a graph in CGA GraphMode.  I would like to add titles and
other comments onto the graph.  When I use standard IO, the only thing that
appears is is a line of dots and shorter lines on line 0 or 1. I would assume
that this is my output written 1 pixel high.  How can I get text to appear
in regular type size, or even the 25X40 mode?  Also is it possible to use
the window module while in graphics, ex 1 window graphics, and another with
regular text?

Hope someone can help me out of this little problem.

Respond to me or to the list if the problem isn't too trivial.
Thanks in advance.
                       Don
                   V065NMMA@UBVMSD

MSRS002@ECNCDC.BITNET ("The Doctor.") (09/23/89)

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

peter@CS.UMU.SE (Peter Lundberg) (10/06/89)

In article <INFO-M2%89092311073463@UCF1VM> you write:
>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

Very interesting, I've built a couple of bit-mapped (8x8,8x16) fonts
but tch are nice but not that good to scale. Please send me your
source and, if you like I'll send you mine.

By the way, are you by any chance familiar with the Microsoft or/and
Borland font format? In that case I would VERY much like to know
how their fonts work.

Please respond to: peter@cs.umu.se