Mail Archives: djgpp/1999/09/21/17:18:24
From: | "Damian Yerrick" <web DOT poison AT pineight DOT 8m DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Re: Text output
|
Date: | Tue, 21 Sep 1999 10:27:20 -0500
|
Organization: | Rose-Hulman Institute of Technology
|
Lines: | 21
|
Message-ID: | <7s888h$ek1$1@solomon.cs.rose-hulman.edu>
|
References: | <7s82b9$kse$1 AT rohrpostix DOT uta4you DOT at>
|
NNTP-Posting-Host: | 137.112.101.169
|
X-Trace: | solomon.cs.rose-hulman.edu 937927761 14977 137.112.101.169 (21 Sep 1999 15:29:21 GMT)
|
X-Complaints-To: | news AT cs DOT rose-hulman DOT edu
|
NNTP-Posting-Date: | 21 Sep 1999 15:29:21 GMT
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Newsreader: | Microsoft Outlook Express 5.00.2314.1300
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2314.1300
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
Roland Moritz <hotel DOT moritz AT utanet DOT at> wrote in message
news:7s82b9$kse$1 AT rohrpostix DOT uta4you DOT at...
> Hi!
>
> I've got a question about Allegro and Text output:
> Has somebody here got a function (or knows about one) which can do the
same
> as text_out(), but that canges the lines, everytime it comes to the border
> of the screen (or a clipping range), AND does not "cut" the words in the
> middle, but only puts complete words in the next line (You know, like
> professional word processors do it), or will I have to write my own
> function? If I have to write it myself, could someone please give me a few
> hints on how to do this?
It depends. If you are using a monospace font (standard 8x8 'font',
'chicago' from DOSArena, etc.), start width characters into the line
and look to the left for the first space. It's a bit more complex with a
proportional font or with Unicode.
- Raw text -