home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: sparky!uunet!gumby!destroyer!fmsrl7!ukma!kherron
- From: kherron@ms.uky.edu (Kenneth Herron)
- Subject: Newbie font/screen question
- Message-ID: <1992Dec15.215729.24166@ms.uky.edu>
- Distribution: na
- Date: Wed, 16 Dec 1992 02:57:29 GMT
- Organization: University Of Kentucky, Dept. of Math Sciences
- Lines: 20
-
- I'm writing my first graphics-using program, and have a simple question
- about setting a font for the screen. The font I'm using is disk-based
- (Helvetica 13, in particular).
-
- The .Font field of the NewScreen struct is a TextAttr rather than a
- TextFont, implying the system does its own OpenFont() or OpenDiskFont()
- when the screen is opened. Xoper confirms this; the use count on the
- font I'm specifying goes up by two (why two?) when the screen opens.
-
- So, besides setting up the TextAttr, what's the minimum I need to
- do with the font? I'm guessing the OS only does an OpenFont() so
- the font has to already be in memory; I can assure this by calling
- OpenDiskFont() first, but that leaves an extra use count lying around,
- so I'm wondering if there's a simpler way. I suspect AddFont() and
- RemFont() figure into this...
- --
- Kenneth Herron kherron@ms.uky.edu
- University of Kentucky +1 606 257 2975
- Dept. of Mathematics "Your ball goes over them, it sails off the edge into
- a huge cauldren of fire-breathing dragons." "And they call this a par three?"
-