home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / mswindo / programm / win32 / 2509 < prev    next >
Encoding:
Internet Message Format  |  1992-12-17  |  844 b 

  1. Path: sparky!uunet!pipex!warwick!uknet!dcl-cs!alan
  2. From: alan@comp.lancs.ac.uk (Alan Phillips)
  3. Newsgroups: comp.os.ms-windows.programmer.win32
  4. Subject: Font common dialog problem diagnosed
  5. Message-ID: <1992Dec17.101418.5669@comp.lancs.ac.uk>
  6. Date: 17 Dec 92 10:14:18 GMT
  7. Organization: Department of Computing at Lancaster University, UK.
  8. Lines: 11
  9.  
  10. I found the reason for a problem I posted a while ago, which stopped
  11. installed fonts being shown in the common dialog for font select in both
  12. 32-bit and 16-bit apps
  13.  
  14. It turns out that if you specify CF_FIXEDPITCHONLY in the CHOOSEFONT
  15. struct, the dialog routine disqualifies _all_ fonts except the standard
  16. raster fonts.
  17.  
  18. Only way of getting fixed-pitch only I can see at the moment is to show
  19. all the fonts, and use WM_CHOOSEFONT_GETLOGFONT to check the details when
  20. the user clicks OK. Messy.
  21.