473,287 Members | 1,555 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,287 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 3632
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: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...

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.