Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!dewey.soe.berkeley.edu!oster From: oster@dewey.soe.berkeley.edu (David Phillip Oster) Newsgroups: comp.sys.mac.programmer Subject: Re: LDEF with multiple fonts Message-ID: <32782@ucbvax.BERKELEY.EDU> Date: 23 Nov 89 09:05:15 GMT References: <13687@eerie.acsu.Buffalo.EDU> Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: oster@dewey.soe.berkeley.edu.UUCP (David Phillip Oster) Organization: School of Education, UC-Berkeley Lines: 14 To write an LDEF that uses multiple fonts, 1.) you can have your LDEF's draw routine save the GrafPort's current font, draw the text in the new font, and restore the font. Since this requires all the fonts you use to be in memory, this takes a lot of RAM, and a lot of time for the initial disk reads. 2.) You can use bitmaps. See the tech note on drawing SICNs for tips on drawing arbitrary offscreen bitmaps. Both of the above techniques have one problem: the List manager does not support variable sized items. 12 point Geneva is not the same height as 14 point Symbol. What I did was: I wrote a menu definition procedure, an MDEF, that handled variable sized, scrollable units. Then I wrote a package to simulate a list manager list to the user, but it was actually calling my MDEF to do the drawing.