Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!rutgers!netnews.upenn.edu!msuinfo!convex.cl.msu.edu!jap From: jap@convex.cl.msu.edu (Joe Porkka) Newsgroups: comp.sys.amiga.tech Subject: Re: Opening a diskfont?? Message-ID: <1991Jan8.173617.12144@msuinfo.cl.msu.edu> Date: 8 Jan 91 17:36:17 GMT References: <700@cbmger.UUCP> Sender: news@msuinfo.cl.msu.edu Organization: Michigan State University Lines: 22 peterk@cbmger.UUCP (Peter Kittel GERMANY) writes: >In article faheyr@silver.ucs.indiana.edu (Bob Fahey ) writes: >>I am programming a utility in C (lattice), and need to open a specific font off of a disk. (the font >>is already stored in the fonts: dir of my boot disk). >> >>How do you go about opening that disk-based font? >Use function OpenDiskFont() instead of OpenFont(). >I'm too lazy to type an example here, but look into the program Also, in my experience, OpenDiskFont does NOT check to see if the font is already loaded, and will load a duplicate. So first try OpenFont, if it fails, or does not give what you want, the OpenDiskFont. If a duplicate gets loaded, it will get unload duriung the next library expunge (ie - out of memory) I WISH there was no such thing a OpenDiskFont. Its as bad as if there was an OpenDiskLibrary. Yucko.