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

  1. Path: sparky!uunet!lax.pe-nelson.com!lax!twbrown
  2. From: twbrown@PE-Nelson.COM (Tom W. Brown)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: Boldface Stock Fonts?
  5. Message-ID: <686@lax.lax.pe-nelson.com>
  6. Date: 5 Nov 92 18:44:05 GMT
  7. References: <1992Nov4.222139.19762@ods.com> <92310.090842SASTPH@vm.sas.com>
  8. Sender: news@lax.pe-nelson.com
  9. Organization: PE-Nelson
  10. Lines: 30
  11.  
  12. In article <92310.090842SASTPH@vm.sas.com>, SASTPH@vm.sas.com writes:
  13. |> In article <1992Nov4.222139.19762@ods.com>, scott@ods.com (Scott Harper) says:
  14. |> >
  15. |> >Is there a way to make one of the stock fonts take on
  16. |> >a BOLD attribute (ala the LOGFONT structure, lfWeight = FW_BOLD)?
  17. |> >
  18. |> Windows can deliver BOLD versions of the standard fonts.  Just ask for
  19. |> a bold weight (FW_BOLD) when you call CreateFont.  Note that the default
  20. |> font for dialog boxes is Helv 8 Bold.
  21.  
  22. Yes, but there's a difference between "standard" fonts (which I would define
  23. as those fonts that are supplied with Windows 3.1) and "stock" fonts which
  24. are the fonts defined in SYSTEM.INI as fixedfon.fon= and fonts.fon=
  25.  
  26. These are bitmapped fonts that have been tailored to specific screen
  27. resolutions and are available via the GetStockObject() routine.  As
  28. jagrant@emr1.emr.ca pointed out, you cannot do anything to a stock object.
  29.  
  30. You are correct in that all the "Standard" fonts come with bold-faced
  31. versions which can be created with the right parameters in CreateFont().
  32. Since the system font is a variable pitch, sans-serif font, using "Helv"
  33. or "Arial" when creating the font will give something that looks pretty
  34. much like the stock font.
  35.  
  36.  
  37. ----------------------------------------------------------------------------
  38. Tom Brown               |  "'ow d'you know 'e's a king?
  39. PE Nelson Systems       |            'cause 'e 'asn't got shit all over 'im!"
  40. twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
  41. ----------------------------------------------------------------------------
  42.