home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3251 < prev    next >
Encoding:
Internet Message Format  |  1992-11-06  |  1.6 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!ux1.cso.uiuc.edu!mp.cs.niu.edu!uxa.ecn.bgu.edu!garrot.DMI.USherb.CA!trepe00
  2. From: trepe00@DMI.USherb.CA (ERIC TREPANIER)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: Boldface Stock Fonts?
  5. Message-ID: <Bx9BzH.rH@DMI.USherb.CA>
  6. Date: 5 Nov 92 19:11:41 GMT
  7. Article-I.D.: DMI.Bx9BzH.rH
  8. References: <1992Nov4.222139.19762@ods.com> <92310.090842SASTPH@vm.sas.com>
  9. Sender: usenet@DMI.USherb.CA (Pour courrier Usenet)
  10. Organization: Universite de Sherbrooke -- Dept. d'Informatique
  11. Lines: 26
  12. Nntp-Posting-Host: roselin
  13.  
  14. In article <92310.090842SASTPH@vm.sas.com> <SASTPH@vm.sas.com> writes:
  15. >In article <1992Nov4.222139.19762@ods.com>, scott@ods.com (Scott Harper) says:
  16. >>
  17. >>Is there a way to make one of the stock fonts take on
  18. >>a BOLD attribute (ala the LOGFONT structure, lfWeight = FW_BOLD)?
  19. >>
  20. >Windows can deliver BOLD versions of the standard fonts.  Just ask for
  21. >a bold weight (FW_BOLD) when you call CreateFont.  Note that the default
  22. >font for dialog boxes is Helv 8 Bold.
  23.  
  24. That's fine when you're using CreateFont, but I think the original poster
  25. was referring to the standard stock fonts, using the GetStockObject API call.
  26. In this case, since you don't get to use a LOGFONT structure, you can't
  27. specify any special attributes.
  28.  
  29. Maybe there is an API call that will return a filled-up LOGFONT struct
  30. when given a HFONT handle.  If not, then you have no choice but to request
  31. your font explicitly using CreateFont.
  32.  
  33.  
  34. Eric
  35. -- 
  36. Eric Trepanier
  37. eric@tgm.CAM.ORG
  38. "Everybody has a right to believe in something.
  39.  I believe I'll have another beer."
  40.