home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!netsys!ukma!cs.widener.edu!dsinc!bagate!cbmvax!peter
- From: peter@cbmvax.commodore.com (Peter Cherna)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Newbie font/screen question
- Message-ID: <37971@cbmvax.commodore.com>
- Date: 16 Dec 92 21:17:22 GMT
- References: <1992Dec15.215729.24166@ms.uky.edu>
- Reply-To: peter@cbmvax.commodore.com (Peter Cherna)
- Distribution: na
- Organization: Commodore-Amiga, Inc. West Chester, PA.
- Lines: 32
-
- In article <1992Dec15.215729.24166@ms.uky.edu> kherron@ms.uky.edu (Kenneth Herron) writes:
- >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,
-
- Use counts are free, so don't worry about it. Indeed, the correct
- way is:
-
- if ( OpenDiskFont( ... ) )
- {
- if ( OpenScreen( ... ) )
- {
- ...
- CloseScreen( ... );
- }
- CloseFont( ... );
- }
-
- >I suspect AddFont() and RemFont() figure into this...
-
- No, those are used to add/remove a TextFont to the public font list. This is
- automatically handled by OpenDiskFont().
-
- >Kenneth Herron kherron@ms.uky.edu
-
- 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.
- "Opinions enlarged to show detail"
-