[comp.sys.mac] HyperTalk Questions + Laserwriter Question

np@doc.ic.ac.uk (Nigel Perry) (01/12/88)

Could somebody please help me with the following problems/questions?

HyperTalk
=========

1) Is there a "proper" way to catch keystrokes? There doesn't seem
   to be a message for them - HyperCard always seems to grab them and
   use them in the message box or a field. I have got around the problem
   by installing an "idle" handler which grabs characters from the
   message box and sends them as keyDown messages - but it is slow and
   typing too fast loses characters...
   (If you wondering... my current application is a "Speak & Spell" card
   as part of a MacinTalk interface stack. I would also like to have "menus"
   were you can select by pressing a key instead of a button.)

2) Is there a way to change AND keep changed the cursor while in Browse
   mode? E.g. I would like the cursor to change when over a button/field,
   catching mouseEnter/mouseExit and using "set cursor" doesn't work as
   once the handler has completed the Browse cursor is restored. Any ideas?

Laserwriter
===========

   Can somebody send me, or tell me where to find, the format of a
   FONT/FOND and Laserwriter font file for a downloadable font.
   In other words I have a screen bitmap font & a postscript font
   description for it, all I need is how to package them up so that
   the Laserwriter driver will download and use the postscript.

Thanks in advance for your help.

---
Nigel Perry                                  Department of Computing
                                             Imperial College
Janet: np@uk.ac.ic.doc                       London
DARPA: np%uk.ac.ic.doc@ucl-cs                SW7
Uucp:  np@icdoc.UUCP, ukc!icdoc!np           England

holt@apple.UUCP (Bayles Holt) (01/16/88)

>Laserwriter
>===========
> 
>   Can somebody send me, or tell me where to find, the format of a
>   FONT/FOND and Laserwriter font file for a downloadable font.
>   In other words I have a screen bitmap font & a postscript font
>   description for it, all I need is how to package them up so that
>   the Laserwriter driver will download and use the postscript.

FONTs are documented in "Inside Macintosh" Vol. I, Font Manager,
pp. 218-235.  FONDs are documented in Vol. IV, Font Manager, pp.
29-48 with more detailed information in the "LaserWriter Reference
Manual", Chapter 4. Downloadable fonts are also described in
Chapter 4.

--Bayles
holt@apple.APNET