By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,389 Members | 2,052 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,389 IT Pros & Developers. It's quick & easy.

Large fonts and small fonts problem.

P: n/a
Luc
I saw a few posts on this newsgroup about it but nothing to help me resolve
this problem:

We designed a window in .NET on a platform using small fonts (120 ppp). But
this window will run on servers configured with large fonts. For a reason I
cant explain, not only the font changes when settings the window on large
font but all the widgets seem to be resized. This is kind of problematic
because I have to redraw (resize) all the widgets using the large fonts.

Is there a way in .NET to prevent this? (I mean, changing the font without
having to resize all the widgets)?
May 3 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Luc" <Lu*@discussions.microsoft.com> wrote in message
news:6D**********************************@microsof t.com...
I saw a few posts on this newsgroup about it but nothing to help me resolve
this problem:

We designed a window in .NET on a platform using small fonts (120 ppp).
But
this window will run on servers configured with large fonts. For a reason
I
cant explain, not only the font changes when settings the window on large
font but all the widgets seem to be resized. This is kind of problematic
because I have to redraw (resize) all the widgets using the large fonts.

Is there a way in .NET to prevent this? (I mean, changing the font without
having to resize all the widgets)?


It's hard to believe that, after all these years and a gazillion service
packs/dev tools, Large Font problems are still with us. fwiw, in VB6, the
problem is easy to deal with, for the most part, due to the fact that VB
coordinates were always expressed in twips. The Screen object returns 15
twips per pixel for Small Fonts, 12 twips per pixel for Large Fonts and who
knows what for "Custom" font sizes. In general, it was pretty easy to use
the 15/12/?? to calculate the size of controls, etc.

The bottom line is.... it looks like we'll still have to code for
small/large/custom fonts forever. Or, simply require the end user to set
their display properly (which is = small fonts) <g> If you do add support
for Large/Small, don't forget Custom.

INFO: Large Fonts Versus Small Fonts Use in Windows
http://support.microsoft.com/default.aspx?kbid=177795

Large Fonts Suck
http://www.divsoft.com/lfs/

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
May 3 '06 #2

P: n/a
Luc
"Ken Halter" wrote:
"Luc" <Lu*@discussions.microsoft.com> wrote in message
news:6D**********************************@microsof t.com...
I saw a few posts on this newsgroup about it but nothing to help me resolve
this problem:

We designed a window in .NET on a platform using small fonts (120 ppp).
But
this window will run on servers configured with large fonts. For a reason
I
cant explain, not only the font changes when settings the window on large
font but all the widgets seem to be resized. This is kind of problematic
because I have to redraw (resize) all the widgets using the large fonts.

Is there a way in .NET to prevent this? (I mean, changing the font without
having to resize all the widgets)?


It's hard to believe that, after all these years and a gazillion service
packs/dev tools, Large Font problems are still with us. fwiw, in VB6, the
problem is easy to deal with, for the most part, due to the fact that VB
coordinates were always expressed in twips. The Screen object returns 15
twips per pixel for Small Fonts, 12 twips per pixel for Large Fonts and who
knows what for "Custom" font sizes. In general, it was pretty easy to use
the 15/12/?? to calculate the size of controls, etc.

The bottom line is.... it looks like we'll still have to code for
small/large/custom fonts forever. Or, simply require the end user to set
their display properly (which is = small fonts) <g> If you do add support
for Large/Small, don't forget Custom.

INFO: Large Fonts Versus Small Fonts Use in Windows
http://support.microsoft.com/default.aspx?kbid=177795

Large Fonts Suck
http://www.divsoft.com/lfs/

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
So no real solution with .NET I see...

May 3 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.