home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15629 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.8 KB  |  42 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!utcsri!torn!watserv2.uwaterloo.ca!watmath!undergrad.math.waterloo.edu!pejanes
  3. From: pejanes@descartes.uwaterloo.ca (Peter Janes)
  4. Subject: Wrong font in some IntuiText's (but not others)?
  5. Message-ID: <BxI8sJ.MBG@undergrad.math.waterloo.edu>
  6. Sender: pejanes@undergrad.math.waterloo.edu (Peter Janes)
  7. Organization: University of Waterloo
  8. Date: Tue, 10 Nov 1992 14:41:05 GMT
  9. Lines: 31
  10.  
  11. Here's an interesting problem:
  12.  
  13. I'm having problems programming fonts under 2.04.  Here's what I've done:
  14.  
  15.   Opened a custom screen, with screen.Font=&my_font;
  16.   Created two sets of (global) IntuiText structures: one for gadget text, one
  17.     for instruction text.
  18.   Opened a window on the custom screen.
  19.  
  20. Both sets of structures have ITextFont=NULL.  From what I understand, this
  21. should render the text in the screen's font (my_font).
  22.  
  23. The problem is, the gadget text is rendered correctly (i.e. in the font
  24. specified in the Screen structure); the instruction text, printed via
  25. PrintIText(), is rendered in the "default system font".
  26.  
  27. IntuiText that's initialized locally in a function and PrintIText()'ed is also
  28. rendered in the "default system font".
  29.  
  30. What am I doing wrong?  From what I understand, IntuiText with
  31. ITextFont=NULL is supposed to be rendered in the window's rastport font,
  32. which is taken from the screen's font.  I've tried opening the screen with a
  33. normal NewScreen structure, an ExtNewScreen structure, and an ExtNewScreen
  34. structure with the SA_Font tag.  No luck.
  35.  
  36. net.Thanks for any help,
  37. -- 
  38. -------------------------------------+-----------------------------------------
  39.  Peter Janes                       //|"Now, here's a song that answers the
  40.   (pejanes@descartes.uwaterloo.ca)// | rhetorical question 'Is that any good?'"
  41.     Certified Amiga Developer   \X/  |   --Moxy Fruvous, "That's Any Good"   
  42.