From: john.Latala@Waterloo.NCR.COM (john Latala)
Newsgroups: comp.sources.hp48
Subject: v03i040:  tsq_jl - Times Square horizontally scrolling large text v1.0, Part01/01
Date: 17 Feb 92 14:49:55 GMT
Followup-To: comp.sys.hp48
Organization: NCR Canada Ltd, Waterloo, Ontario, Canada.

Checksum: 2593912457 (verify with brik -cv)
Submitted-by: john Latala <john.Latala@Waterloo.NCR.COM>
Posting-number: Volume 3, Issue 40
Archive-name: tsq_jl/part01


BEGIN_DOC tsq.doc
I posted a version of this quite some time back for the HP28. Here's my
HP48 version of it.

The design of this version is quite different from the '28 version. That
one had only one font available. This version uses a program to
'enlarge' the normal font. 

The routine MKFONT takes three arguments:

	- String of desired character set
	- HP48 font number (1, 2, 3)
	- zoom factor (usually 2, 3, 4)

Eventually the program stops after creating a character set list
varialbe that contains a string of the character set and a large GROB of
the bitmap.  The routine will save the character set list in a variable
called: FfZz where 'f' is the supplied font and 'z' is the supplied zoom
factor.  The character sets F3Z2 and F3Z3 work quite nicely.

You only have to run MKFONT to create the character set lists the first
time. You can probably only keep these around if you have a RAM card
installed in your '48 because they're quite large. Here are the sizes as
returned by the BYTES program for various fonts:

	Font	Size
	----	----
	F3Z2	4988.5
	F3Z3	10988.5
	F3Z4	19388.5

To finally display a message put the message string on the stack, put a
character set list on the stack then run the TSQ program itself. The
large characters will scroll horizontally across the screen.

Any characters that are in the message, but not in the supplied
character set list are ignored ( to change this look at T\->G ).

While TSQ is running a number of keys are usable:

	Key		Usage
	---		-----
	ENTER		restart the display from the beginning
	+	 	Increase the number of pixels moved
	-		Dexrease the number of pixels moved
	*		Increase the time delay between updates
	/		Decrease the time delay between updates
	other		Stop program after this pass ends

If you want to stop right away you can press any key, then the ENTER to
force a new pass to start.

When moving the message across the screen in large steps it looks better
to also use a large delay between screen updates.

The routine used to make the character set list is kind of slow, but it
does work and only has to be run once...

Once problem that I had with this program was that any GROB stored into
PICT can't be wider than 2048 pixels. If you're using one of the larger
fonts and/or a long message this can easily be exceeded.

The initial version of the program just created the large GROB, stored
it on PICT then used PVIEW to walk 'down' the length of the GRBO making
it look like a scrolling display. This was quicker, but would blow up
when the GROB was wider than 2048 pixels.

Enough talking, here's the program as a directory:

--
john.Latala@Waterloo.NCR.COM

/EARTH is 90% full, please delete anything superfluous...

