home *** CD-ROM | disk | FTP | other *** search
/ Inside Multimedia 1995 August / IMM0895.ISO01.iso / share / os2 / track061 / help < prev    next >
Internet Message Format  |  1992-11-01  |  2KB

  1. From tamsun.tamu.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!stanford.edu!rock!taco!garfield.catt.ncsu.edu!harris Sun Nov  1 18:00:36 CST 1992
  2. Article: 6854 of comp.os.os2.programmer
  3. Newsgroups: comp.os.os2.programmer
  4. Path: tamsun.tamu.edu!cs.utexas.edu!sdd.hp.com!spool.mu.edu!uunet!stanford.edu!rock!taco!garfield.catt.ncsu.edu!harris
  5. From: harris@garfield.catt.ncsu.edu (Michael Harris)
  6. Subject: Re: can't access resource font
  7. Message-ID: <harris.720655949@garfield.catt.ncsu.edu>
  8. Sender: news@ncsu.edu (USENET News System)
  9. Organization: North Carolina State University
  10. References: <1992Oct31.184358.4532@tamsun.tamu.edu>
  11. Date: Sun, 1 Nov 1992 22:12:29 GMT
  12. Lines: 33
  13.  
  14. davidn@cs.tamu.edu (David E Nichols) writes:
  15.  
  16. >call= GpiLoadFonts(hab, "lcd.fnt")
  17.  
  18. This is your problem.  The documentation says that you cannot specify anything
  19. but a .fon file for the name.  A .fnt file is nothing but a raw font.  A .fon
  20. file is an empty DLL with font resources attached.
  21.  
  22. If you want to use GpiLoadFonts, you must compile a dummy entrypoint into
  23. a DLL and then use the resource compiler to attach the font to the DLL.
  24.  
  25. Your DLL can consist of nothing but:
  26.  
  27. main()
  28. {
  29. }
  30.  
  31. Compile that into an .obj file and go from there.  You could then install
  32. the font into your system if you like using the font palette.
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43. ______________________________________________________________________________
  44.      Michael Harris - harris@catt.ncsu.edu or harris@carvm3.vnet.ibm.com
  45.  System Administrator, Computer & Technologies Theme Program, NC State Univ.
  46. (My opinions are my own and do not represent those of NCSU or IBM Corporation)
  47.  
  48.  
  49.