Path: utzoo!utgpu!water!watmath!clyde!att-cb!att-ih!alberta!ubc-cs!uw-beaver!mit-eddie!husc6!uwvax!puff!avery From: avery@puff.cs.wisc.edu (Aaron Avery) Newsgroups: comp.sys.amiga Subject: Re: Changing fonts in the SCREEN Keywords: Is this possible Message-ID: <1567@puff.cs.wisc.edu> Date: 16 Apr 88 10:36:25 GMT References: <428@lznh.UUCP> Reply-To: avery@puff.cs.wisc.edu (Aaron Avery) Organization: U of Wisconsin CS Dept Lines: 37 In article <428@lznh.UUCP> pjm@lznh.UUCP (<10000>Paul Maioriello) writes: >What I would like to do is to change the fonts used to write >into the title bar of a screen. I thought I could do this >by changing the TextAttr structure to use a font other than >topaz. It seems that I get topaz in the screen title regardless As you found out, the TextAttr structure is to declare which font you would like to be the standard font for anything YOU print into that screen. The problem with doing what you want is that INTUITION does the displaying of the screen's title bar and menus. The program called SetFont allows one to set the default system font for various things, including subsequently created screens' title bar rendering. I'm not sure how it's done, but I believe that source is available, so you might find the answer there. >Is there a reason why wanting to use a different font in the >screen a really dumb idea? Of course not. >On a related note, is it possible to put text directly on a screen >without first opening a window? Yes. You can print text in any RastPort. The system allocates one for every screen and puts it in the screen structure's RastPort field. To get a pointer to a screen's RastPort do this: struct RastPort *rp; rp = &(screen->RastPort); Now you can use many, many of the system graphics calls to render into your screen, including Text(). Note that the screen has no layers defined for it, so if you have windows on your screen, you can render on top of them if you use the screen's RastPort. If you have windows on your screen and wish to render behind them, you should open a BORDERLESS, BACKDROP window on your screen, and render into ITS RastPort. Hope this helps, and let me know if you need help finding SetFont. -- Aaron Avery (avery@puff.cs.wisc.edu) ({seismo,caip,allegra,harvard,rutgers,ihnp4}!uwvax!puff!avery)