473,385 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Large fonts and small fonts problem.

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
2 2901
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: minchu | last post by:
Hello, I have used CSS in HTML page (font-verdana size-8pt), looks fine in windows but in linux the fonts are corrupt and its too small. Kindly help me and tell what is the solution to correct...
5
by: Olli Krollmann | last post by:
hello folks, we have been developing several .NET-based windows forms applications during the last two years. there are two mysterious display problems that we have encountered so far but have...
0
by: theinvisibleGhost | last post by:
Yesterday was getting very fed up trying to run a program which works fine on my desktop machine (XP Pro) but as soon as I put it on a laptop, I was getting an Exception, which killed the program....
5
by: Alex Glass | last post by:
I have created a winforms application and I designed it with the normal display settings, (96DPI) however, when I set the font settings to 120 DPI, my application text labels look all messed up. ...
0
by: sonali_reddy123 | last post by:
Hi, I have a problem regarding the Large fonts use for the apppliaction. I have a VB.NET application whose UI I have designed with settings of my computer having Small Fonts. But as I have...
57
by: Chris Tomlinson | last post by:
Hi all, Hope someone is able to help. I notice when I design a basic HTML page, it is affected if a WinXP user has Large Fonts set in their Control Panel. However some pages, e.g....
8
by: Joe | last post by:
Hi trying to write some code to determine if user has large/small fonts set on PC thought this would work but it didn't Any suggestions??? Thanks Graphics g = Graphics.FromHwnd(this.Handle);
2
by: Frank Rizzo | last post by:
Winforms applications look allright on Windows XP when you turn on Extra Large Fonts. In Vista, if you turn on Extra Large fonts, winform applications look cartoony as if they've been stretched. ...
19
by: Viken Karaguesian | last post by:
Hello everyone, Just an observation here: the CSS newsgroup (comp.infosystems.www.authoring.stylesheets) is totally dead. Why?... Anyway here's my discussion point: What is the most versatile...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.