473,394 Members | 1,739 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,394 software developers and data experts.

distorted fonts and incorrectly sized windows

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 been unable to find any information about:

1. distorted fonts. when placing label controls on forms or setting form or
grid captions we often notice that the label or title text is stretched out
in the left part, displays correctly in the middle part, and is compressed
in
the right part. eg a grid title like "Order Details Information" contains
two
pixels spacing between the letters in "Order", is correctly spaced in the
word "Details", and most of the letters in the right part of "Information"
would touch each other with no separating pixel between them. it almost
looks
as if the spacing is calculated in a degressing fashion from left to right.
is this a known problem? has anyone encountered this before? could it be
related to a certain display driver or graphics adapter model? i can provide
a screenshot if needed to display the distortion.

2. incorrectly sized forms and message boxes. there is an even stranger
problem, that windows forms and message boxes are incorrectly sized if they
belong to a .NET application. this problem may occur as early as at the end
of the .NET Framework installation, when the "Installation Finished" screen
gets clipped in height so that the lower part of the window is invisible.
MSI
setup packages generated with .NET may also be reduced in height so that the
buttons like "Next >" only display their upper border. on the other hand
message boxes or forms may be enlarged in either width or height, and cannot
be resized. MinimumWidth and MinimumHeight properties are no longer honored.
it appears as if the window size is determined by the very first window that
is displayed by a .NET application, and all windows that are created after
that have the same size, or at least the same width or height. thus we
suspect that some internal .NET data structures buffer the settings of the
first window and incorrectly apply them to all subsequent windows. this is
not consistent, but rather happens on only some pc's. we have not yet been
able to determine a common component or setting among the affected machines.
again, the same questions as in 1.

any help or insight is appreciated.

TIA,
olli krollmann, mcse2000
krollmann software
Nov 22 '05 #1
4 3638
I have noticed the distorted-font problem with MS Sans Serif. Changing to
Arial reduced but did not eliminate the problem. I have absolutely no idea
what is causing it. As you say, it is a matter of uneven horizontal letter
spacing, with a bit too much spacing at the left and a bit too little at the
right. I suspect a rather deep bug in Windows or .NET.
Nov 22 '05 #2
I had a similar problem. The cause was my PC load. XP as set to UK
English, VS load as US. My main application was being run in Europe. I
had set several settings specifically to display for UK English. Not
taking into account local regional settings. My solution was to reload
my machine and all software for International English and leave custom
display settings alone!!

I also found out that some high-end graphics cards have regional
settings that could over-ride the machine settings. I only encountered
this when playing with the API. Again, leave it alone!! It's EVIL!!!!

Also, some users had installed a "themes engine" for XP. This
caused all kinds of headaches with display. I told my users to
un-install the software as I could not develop interfaces to handle
this. Easy way out, I know, but less stressful.

Hope this helps

Nov 22 '05 #3
Is anybody from Microsoft monitoring these entries?

I have same problem. I have spent many hours researching. It is a relief to
find this entry. I'm not as 'out of it' as I thought.
Some users have distorted and bleeding fonts while others do not.
We initially used font sizes like 'x-small' and 'xx-small'. This was the
problem. So, I had to go back and change all font sizes to actual pt sizes
to get things under control. Even then, there still seems to some kind of
'enlarging' going on in the frames for just a few users. I've had to adjust
the size of the text lines as well.
We have a few thousand users to be concerned with and we worried we haven't
done enough.

I'd like to hear from a source in Microsoft that can give some ideas.

"Olli Krollmann" wrote:
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 been unable to find any information about:

1. distorted fonts. when placing label controls on forms or setting form or
grid captions we often notice that the label or title text is stretched out
in the left part, displays correctly in the middle part, and is compressed
in
the right part. eg a grid title like "Order Details Information" contains
two
pixels spacing between the letters in "Order", is correctly spaced in the
word "Details", and most of the letters in the right part of "Information"
would touch each other with no separating pixel between them. it almost
looks
as if the spacing is calculated in a degressing fashion from left to right.
is this a known problem? has anyone encountered this before? could it be
related to a certain display driver or graphics adapter model? i can provide
a screenshot if needed to display the distortion.

2. incorrectly sized forms and message boxes. there is an even stranger
problem, that windows forms and message boxes are incorrectly sized if they
belong to a .NET application. this problem may occur as early as at the end
of the .NET Framework installation, when the "Installation Finished" screen
gets clipped in height so that the lower part of the window is invisible.
MSI
setup packages generated with .NET may also be reduced in height so that the
buttons like "Next >" only display their upper border. on the other hand
message boxes or forms may be enlarged in either width or height, and cannot
be resized. MinimumWidth and MinimumHeight properties are no longer honored.
it appears as if the window size is determined by the very first window that
is displayed by a .NET application, and all windows that are created after
that have the same size, or at least the same width or height. thus we
suspect that some internal .NET data structures buffer the settings of the
first window and incorrectly apply them to all subsequent windows. this is
not consistent, but rather happens on only some pc's. we have not yet been
able to determine a common component or setting among the affected machines.
again, the same questions as in 1.

any help or insight is appreciated.

TIA,
olli krollmann, mcse2000
krollmann software

Nov 22 '05 #4
Olie,

The change that you get an official answer from Microsoft in these
newsgroups is low.

All answers in the newsgroups from Microsoft are "AS IS"

Secondly this is a reply on another message, so probably not monitored.

If you want an answer from Microsoft than the way to go is to contact them
direct.

(In addition if you want an answer from a Microsoft employee, than add that
to the subject in a new message)

Just my thought,

Cor
Nov 22 '05 #5

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...
21
by: Jay Levitt | last post by:
I'm just starting to play around with CSS and MovableType. My home page (http://www.jay.fm) now validates on both the CSS and the XHTML. However, the Google cached version shows the wrong font in...
66
by: Alan Illeman | last post by:
Is there a listing of serif fonts and san-serif fonts somewhere? Regards, Alan -- A: Because it messes up the order in which people normally read text. Q: Why is it such a bad thing? A:...
39
by: David Jubinville | last post by:
Hi All, I've run into a bit of an interesting problem with CSS and font DPI and would certainly welcome help. Problem: Page layout defined in CSS has font size issues (overlapping frames,...
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...
1
by: Trace C | last post by:
We are needing to ensure that the fonts in our C# Windows App will enlarge if the user sets their environment settings on their PC to large fonts. I know that to ensure that the fonts size...
4
by: L | last post by:
Hi there, Does C# support OpenType fonts? My c# application is not recognizing OpenType fonts. Thanks, Lalasa.
4
by: Aaron Gray | last post by:
Is there anyway to get a list of all the availiable fonts in Javascript ? Aaron
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: andreas | last post by:
How can I choose some fonts in programs so that they are always avalable for the program at other computers, can I put them in some resources? Thanks for any response
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.