home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!walter!att-out!rutgers!cbmvax!peter
- From: peter@cbmvax.commodore.com (Peter Cherna)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Wrong font in some IntuiText's (but not others)?
- Message-ID: <37005@cbmvax.commodore.com>
- Date: 12 Nov 92 17:16:19 GMT
- References: <BxI8sJ.MBG@undergrad.math.waterloo.edu>
- Reply-To: peter@cbmvax.commodore.com (Peter Cherna)
- Organization: Commodore-Amiga, Inc. West Chester, PA.
- Lines: 26
-
- In article <BxI8sJ.MBG@undergrad.math.waterloo.edu> pejanes@descartes.uwaterloo.ca (Peter Janes) writes:
- >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".
-
- >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.
-
- It should work. I opened a screen with SA_Font pointing to a TextAttr
- describing Helvetica 15, and it worked just fine. Are you sure you're
- not calling SetFont() on your window's RastPort's font?
-
- The window RastPort font is indeed initialized to the screen font if
- the screen was opened with an explicit NewScreen.Font or SA_Font.
-
- > Peter Janes //|"Now, here's a song that answers the
-
- Peter
- --
- Peter Cherna, User Interface Development Group, Commodore-Amiga, Inc.
- {uunet|rutgers}!cbmvax!peter peter@cbmvax.commodore.com
- My opinions do not necessarily represent the opinions of my employer.
- "I believe it's bad luck to be superstitious."
-