RE: Re: Default Font Bolded

"Nenad Stefanovic" <[email protected]>
Newsgroups gmane.comp.windows.wtl
Message-ID <000601cac116$67b273b0$37175b10$@com>
Thank you for your support!

 

Cheers,

Nenad

 

 

From: [email protected] [mailto:[email protected]] On Behalf Of yarp
Sent: Thursday, March 11, 2010 12:19 AM
To: [email protected]
Subject: [wtl] Re: Default Font Bolded

 

  

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] <mailto:wtl%40yahoogroups.com> , "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
>
> 





[Non-text portions of this message have been removed]



------------------------------------

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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.