Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!think!ames!amdahl!acs From: acs@amdahl.UUCP (Tony Sumrall) Newsgroups: comp.sys.amiga Subject: Re: New font: Pearl Message-ID: <5959@amdahl.UUCP> Date: Sun, 22-Mar-87 19:18:26 EST Article-I.D.: amdahl.5959 Posted: Sun Mar 22 19:18:26 1987 Date-Received: Tue, 24-Mar-87 01:57:12 EST References: <1166@spice.cs.cmu.edu> Reply-To: acs@amdahl.UUCP (Tony Sumrall) Organization: Amdahl Corporation, Sunnyvale CA Lines: 32 Keywords: font text topaz Summary: Remember SetFont? In article <1166@spice.cs.cmu.edu> mjp@spice.cs.cmu.edu (Michael Portuesi) provides a a font that I'm really fond of. I dragged out the ol' SetFont program and began trying to hack it up so that it would set the default font in my Screen so that future windows would automatically use the new font (I'm *not* using MWB or anything like that). Well, needless to say I wasn't very successful. Yes, I got PUBLIC memory for TextAttr and the font name and I plugged the address of that TextAttr into the Screen structure but it didn't work at all -- the next window that I open has *nothing* in it -- nada, no borders nor nuttin'. Anybody got any other ideas of how to go about coercing Intuition to change its idea of what the default font is (or is that just simply not possible)? Another thing that I noticed is that the SetFont call in SetFont is *not* returning zero -- ever. I thought that maybe it was because I had some other already open windows and screens so I closed them all and it's still returning non-zero (even tried re-booting and killing my startup then immediately running the program to no avail). Looks like SetFont may be returning a pointer to a Window but I'm not too sure. What I was gonna do was issue an AddFont after I knew the SetFont was successful so that other pgms that wanna use the same font will use the in-core copy. The long and short of this paragraph is that I have 2 further questions: * Why does the SetFont fail? * Is AddFont the right thing to do? Please e-mail responses to me and I'll summarize. Thanks. -- Tony Sumrall acs@amdahl.amdahl.com <=> ...!{ihnp4,hplabs,seismo}!amdahl!acs [ Opinions expressed herein are the author's and should not be construed to reflect the views of Amdahl Corp. ]