home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15749 < prev    next >
Encoding:
Internet Message Format  |  1992-11-12  |  1.7 KB

  1. Path: sparky!uunet!walter!att-out!rutgers!cbmvax!peter
  2. From: peter@cbmvax.commodore.com (Peter Cherna)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Wrong font in some IntuiText's (but not others)?
  5. Message-ID: <37005@cbmvax.commodore.com>
  6. Date: 12 Nov 92 17:16:19 GMT
  7. References: <BxI8sJ.MBG@undergrad.math.waterloo.edu>
  8. Reply-To: peter@cbmvax.commodore.com (Peter Cherna)
  9. Organization: Commodore-Amiga, Inc.  West Chester, PA.
  10. Lines: 26
  11.  
  12. In article <BxI8sJ.MBG@undergrad.math.waterloo.edu> pejanes@descartes.uwaterloo.ca (Peter Janes) writes:
  13. >The problem is, the gadget text is rendered correctly (i.e. in the font
  14. >specified in the Screen structure); the instruction text, printed via
  15. >PrintIText(), is rendered in the "default system font".
  16.  
  17. >What am I doing wrong?  From what I understand, IntuiText with
  18. >ITextFont=NULL is supposed to be rendered in the window's rastport font,
  19. >which is taken from the screen's font.  I've tried opening the screen with a
  20. >normal NewScreen structure, an ExtNewScreen structure, and an ExtNewScreen
  21. >structure with the SA_Font tag.  No luck.
  22.  
  23. It should work.  I opened a screen with SA_Font pointing to a TextAttr
  24. describing Helvetica 15, and it worked just fine.  Are you sure you're
  25. not calling SetFont() on your window's RastPort's font?
  26.  
  27. The window RastPort font is indeed initialized to the screen font if
  28. the screen was opened with an explicit NewScreen.Font or SA_Font.
  29.  
  30. > Peter Janes                       //|"Now, here's a song that answers the
  31.  
  32.      Peter
  33. --
  34. Peter Cherna, User Interface Development Group, Commodore-Amiga, Inc.
  35. {uunet|rutgers}!cbmvax!peter    peter@cbmvax.commodore.com
  36. My opinions do not necessarily represent the opinions of my employer.
  37. "I believe it's bad luck to be superstitious."
  38.