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