home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!utcsri!torn!watserv2.uwaterloo.ca!watmath!undergrad.math.waterloo.edu!pejanes
- From: pejanes@descartes.uwaterloo.ca (Peter Janes)
- Subject: Wrong font in some IntuiText's (but not others)?
- Message-ID: <BxI8sJ.MBG@undergrad.math.waterloo.edu>
- Sender: pejanes@undergrad.math.waterloo.edu (Peter Janes)
- Organization: University of Waterloo
- Date: Tue, 10 Nov 1992 14:41:05 GMT
- Lines: 31
-
- Here's an interesting problem:
-
- I'm having problems programming fonts under 2.04. Here's what I've done:
-
- Opened a custom screen, with screen.Font=&my_font;
- Created two sets of (global) IntuiText structures: one for gadget text, one
- for instruction text.
- Opened a window on the custom screen.
-
- Both sets of structures have ITextFont=NULL. From what I understand, this
- should render the text in the screen's font (my_font).
-
- The problem is, the gadget text is rendered correctly (i.e. in the font
- specified in the Screen structure); the instruction text, printed via
- PrintIText(), is rendered in the "default system font".
-
- IntuiText that's initialized locally in a function and PrintIText()'ed is also
- rendered in the "default system font".
-
- What am I doing wrong? From what I understand, IntuiText with
- ITextFont=NULL is supposed to be rendered in the window's rastport font,
- which is taken from the screen's font. I've tried opening the screen with a
- normal NewScreen structure, an ExtNewScreen structure, and an ExtNewScreen
- structure with the SA_Font tag. No luck.
-
- net.Thanks for any help,
- --
- -------------------------------------+-----------------------------------------
- Peter Janes //|"Now, here's a song that answers the
- (pejanes@descartes.uwaterloo.ca)// | rhetorical question 'Is that any good?'"
- Certified Amiga Developer \X/ | --Moxy Fruvous, "That's Any Good"
-