by Michael S. Kaplan, published on 2006/06/06 05:01 -04:00, original URI: http://blogs.msdn.com/b/michkap/archive/2006/06/06/618628.aspx
What do this question from flyingxu:
I'm an MFC programmer. When I try to write some app for Chinese or Korean, I find many controls' size are changed by theire font. I mean, when I change the font, child dialog's size change and the whole dialog's layout is changed, which may lead to some overlap or empty space gap. It's big headache for me now.
and this question from Steffen (a.k.a. The SZ):
In your "What about logical fonts? " post you are writing much about shell dlg and shell dlg 2 and stuff. There are also a lot of other stuff outthere, but i still don't know what I should do. My requirements are pretty simple:
* windows 95 to vista support in single binary
* best ui experience which is available on this platform
* different dpi setting support
Thats all.
Currently I'm using FindResourceEx and mofiy the font name to "MS Shell Dlg 2" if available, if not using "MS Shell Dlg".
Why supports "MS Shell Dlg" not different dpi settings? (120dpi) (The font is not getting larger)
Will vista finally map "MS Shell Dlg 2" to "Segoe UI"? Or do I have to do this?
Steffen
and this question from Matt:
On my dev box I’m running XP and the default font for my winforms is “Microsoft Sans Serif, 8.25pt” and it appears to match the font of other apps such as Excel and Outlook. When my app is installed on a box running Vista, the font no longer matches Vista’s default font of Segoe.
What are the recommendations for an app to match the system font defaults? Any links to code samples?
and the following blog posts:
and what Mark mentioned:
The problem is not in coming up with the function but in understanding what the rules are across themes and across different language versions of Vista. Does the font change for different themes? Does the font change across language versions?
This, in my experience, has always been the problem, trying to understand what the right thing to do is based on MSDN is virtually impossible. There is a stack of conflicting and (sometimes plain bad) information spread across many different locations. It would be refreshing to see guidance that states clearly what font should be used where.
have in common?
Well, first of all they all talk about fonts, obviously. :-)
What is more important is that there is in the heart of each post, each question, and each comment a common desire.
Simply stated? It is the desire for some magical way to simply not have to worry about choosing a font or its size to get the appropriate display of the text in an application.
So, watch this space because in approximately 24 hours I will post my ultimate response to all of this. You may disagree with it, you may wonder why someone who would post something like this would think he was even qualified to try, you may think it is the coolest thing since sliced bread.
But you'd probably be wrong, it is just gonna be about fonts. :-)
This post brought to you by ʬ (U+02ac, a.k.a. LATIN LETTER BILABIAL PERCUSSIVE)
# Adam on 6 Jun 2006 11:09 AM:
# Michael S. Kaplan on 6 Jun 2006 11:32 AM:
# Adam on 6 Jun 2006 12:08 PM:
# Michael S. Kaplan on 6 Jun 2006 3:54 PM:
# Rune on 7 Jun 2006 5:29 AM:
referenced by