home *** CD-ROM | disk | FTP | other *** search
/ PC Media 3 / PC MEDIA CD03.iso / share / os2 / tracker / help / text0000.txt < prev   
Encoding:
Text File  |  1992-11-01  |  989 b   |  36 lines

  1. davidn@cs.tamu.edu (David E Nichols) writes:
  2.  
  3. >call= GpiLoadFonts(hab, "lcd.fnt")
  4.  
  5. This is your problem.  The documentation says that you cannot specify anything
  6. but a .fon file for the name.  A .fnt file is nothing but a raw font.  A .fon
  7. file is an empty DLL with font resources attached.
  8.  
  9. If you want to use GpiLoadFonts, you must compile a dummy entrypoint into
  10. a DLL and then use the resource compiler to attach the font to the DLL.
  11.  
  12. Your DLL can consist of nothing but:
  13.  
  14. main()
  15. {
  16. }
  17.  
  18. Compile that into an .obj file and go from there.  You could then install
  19. the font into your system if you like using the font palette.
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30. ______________________________________________________________________________
  31.      Michael Harris - harris@catt.ncsu.edu or harris@carvm3.vnet.ibm.com
  32.  System Administrator, Computer & Technologies Theme Program, NC State Univ.
  33. (My opinions are my own and do not represent those of NCSU or IBM Corporation)
  34.  
  35.  
  36.