Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!oliveb!amiga!cbmvax!ken From: ken@cbmvax.UUCP (Ken Farinsky - CATS) Newsgroups: comp.sys.amiga.tech Subject: Re: Using multiple fonts with Intuition Message-ID: <7859@cbmvax.UUCP> Date: 8 Sep 89 15:14:39 GMT References: <1317@jimi.cs.unlv.edu> Reply-To: ken@cbmvax.UUCP (Ken Farinsky - CATS) Organization: Commodore Technology, West Chester, PA Lines: 40 In article <1317@jimi.cs.unlv.edu> jack@jimi.cs.unlv.edu (The Prism) writes: >I have an Amiga programming question involving using multiple fonts >with intuition. First of all, my program sets up the screen using >topaz 11 as the standard font, later on however, I want to change fonts >to courier 18, but when I print my string, it is still in topaz 11. >below are the lines from my program where I try to use courier 11: > -------------- > >struct TextAttr biggerfont = { > "courier.font", > 18, > FS_NORMAL, > FPB_DISKFONT, >}; > >struct IntuiText IT2 = { > WHITE, 0, > JAM1, 100, 100, > &biggerfont, > "This is a test", > NULL, >} > > ... > ... > ... > > PrintIText(rport,&IT2,0,0); > ... > ... For IntuiText to have access to a font, it must be in memory. Use OpenDiskFont() to load the font and this should work. Remember to close the font when you are done. -- -------------------------------------------------------------- Ken Farinsky -- CATS Commodore Business Machines PHONE 215-431-9421 UUCP ...{uunet,rutgers}!cbmvax!ken --------------------------------------------------------------