473,725 Members | 2,197 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2934
"Luc" <Lu*@discussion s.microsoft.com > wrote in message
news:6D******** *************** ***********@mic rosoft.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*@discussion s.microsoft.com > wrote in message
news:6D******** *************** ***********@mic rosoft.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
2801
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 this. www.teledna.com Regards, Minchu
5
452
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 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...
0
1144
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. The problem occured when showing a dialog box a second time. The first time it was hidden when closed, and when ShowDialog was called a second time an InvalidOperationException was thrown, claiming that a dialog could not be shown if it was...
5
3266
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. Does anyone know a work-around for this problem? Thanks for any advice, Alex
0
1089
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 changed the settings my controls in the form got disturbed.Some of them were not visible even though they were present. Also the text for some of the command buttons was not properly getting displayed.
57
3656
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. www.bbc.co.uk/news are unaffected by this I think. They are definitely not affected by changing the font size within the browser. Because I want to add tables, which will word-wrap incorrectly if the font size is changed, how can I disable allowing the...
8
3236
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
4015
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. In you check 'Use Windows XP scaling' in the Font Size dialog, winform applications go back to looking normal, but anything that has been explicitly set to be at pixel position, x, y is off. For instance, any dialog boxes that resize themselves...
19
2077
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 value to use to set font-size? I set my font size in percentages. I set the main font size in the body tag (which everything will inherit), then adjust other sizes in relation to that (for headers, fine print, etc).
0
8888
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9401
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9176
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6702
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4519
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4784
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2635
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.