Re: Default Font Bolded
"yarp" <lac-3QW3q7+2X3hWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.windows.wtl |
|---|---|
| Message-ID | <[email protected]> |
Hi Nenad,
> You *don't* want to use that font. So, you
> have to create and select a font before drawing text.
Didn't got that.
My remark on AtlDefaultGuiFont was based on what I have read on OldNewThing blog ("...Windows itself stopped using it in favor of the various fonts returned"). I realize things are -not surprinsingly- more complex.
Thanks for the explanations and links.
Also thanks so much for your involvement in WTL. I can't tell how much I love working with this Library.
Yarp
--- In [email protected], "Nenad Stefanovic" <nenad2001@...> wrote:
>
> Hi Yarp,
>
> The "default" font for DC is SYSTEM_FONT, which is bold-only bitmap font
> (the one you can see in WinDiff). You *don't* want to use that font. So, you
> have to create and select a font before drawing text.
>
> For general discussion about fonts:
>
> There is nothing wrong with AtlGetDefaultGuiFont() if you understand that it
> is not a universal font solution. It gives you the font which is the same as
> "MS Shell Dlg". The better solution for applications is to use desired font
> directly.
>
> Using fonts from NONCLIENTMETRICS is OK for their intended use, but not for
> something else. For example, if you have Edit-based view window, and you use
> Caption font, then your Edit view font will depend on the user setting for
> the Caption font. The same for other fonts in NONCLIENTMETRICS.
>
>
>
> OldNewThing blog has fantastic information, but is sometimes hard to
> understand. Here is another excellent blog discussing these topics:
>
> http://blogs.msdn.com/michkap/archive/2006/06/11/626100.aspx
> http://blogs.msdn.com/michkap/archive/2006/03/18/554308.aspx
>
> All this reminded me that we should review and make sure that font handling
> in WTL is correct. We will do that.
>
> Cheers,
>
> Nenad
>
>
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/wtl/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/wtl/join
(Yahoo! ID required)
<*> To change settings via email:
[email protected]
[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/