Large fonts and small fonts problem.

G

Guest

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)?
 
K

Ken Halter

Luc said:
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/
 
G

Guest

Ken Halter said:
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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top