473,498 Members | 1,532 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with: Use the following method to smooth edges of screen fonts: if ClearType is selected

In control panel/Display/Appearance/Effects if :

'Use the following method to smooth edges of screen fonts' is checked and

ClearType is selected in the combobox (no problem if Standard is selected)

I get a crazy font display in parts of my picturebox.

Do you have any info regarding this?

Thanks for any help!
Apr 30 '07 #1
7 2977
On Apr 30, 4:31 am, " active" <activeNOS...@a-znet.comwrote:
In control panel/Display/Appearance/Effects if :

'Use the following method to smooth edges of screen fonts' is checked and

ClearType is selected in the combobox (no problem if Standard is selected)

I get a crazy font display in parts of my picturebox.

Do you have any info regarding this?

Thanks for any help!
You don't have a small sample app that demonstrates this do you? I
have been experimenting and can't get the error to reproduce.

Thanks,

Seth Rowe

Apr 30 '07 #2
No, It's really a complex application with library and a few projects.

But by checking and unchecking and selecting Standard or ClearType many
times while not changing anything else I can verify what I said.

The font looks like it's been printed twice, with poor registration.
Once blue and once red.

Thanks a lot for trying
"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11*********************@e65g2000hsc.googlegro ups.com...
On Apr 30, 4:31 am, " active" <activeNOS...@a-znet.comwrote:
>In control panel/Display/Appearance/Effects if :

'Use the following method to smooth edges of screen fonts' is checked and

ClearType is selected in the combobox (no problem if Standard is
selected)

I get a crazy font display in parts of my picturebox.

Do you have any info regarding this?

Thanks for any help!

You don't have a small sample app that demonstrates this do you? I
have been experimenting and can't get the error to reproduce.

Thanks,

Seth Rowe

Apr 30 '07 #3
On Apr 30, 12:39 pm, " active" <activeNOS...@a-znet.comwrote:
No, It's really a complex application with library and a few projects.

But by checking and unchecking and selecting Standard or ClearType many
times while not changing anything else I can verify what I said.

The font looks like it's been printed twice, with poor registration.
Once blue and once red.

Thanks a lot for trying

"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message

news:11*********************@e65g2000hsc.googlegro ups.com...
On Apr 30, 4:31 am, " active" <activeNOS...@a-znet.comwrote:
In control panel/Display/Appearance/Effects if :
'Use the following method to smooth edges of screen fonts' is checked and
ClearType is selected in the combobox (no problem if Standard is
selected)
I get a crazy font display in parts of my picturebox.
Do you have any info regarding this?
Thanks for any help!
You don't have a small sample app that demonstrates this do you? I
have been experimenting and can't get the error to reproduce.
Thanks,
Seth Rowe
I've had plenty of problems with ClearType displaying correctly, but
not in any of my applications. I notice plenty of font "smearing" in
MS Access 2007 forms and Powerpoint.

Have you tried forcing the picturebox to refresh itself by calling
PictureBox.Invalidate() or PictureBox.Refresh()? I not sure if the
picturebox supports them, but you could even experiment with
Control.SetStyle and tell the picturebox to use
(Optimized)DoubleBuffer or maybe Antialiasing - perhaps one of those
will clear up the font.

By the way, how are you putting the text into the picturebox? Are you
printing it with GDI DrawString or using a label etc...

Thanks,

Seth Rowe

Apr 30 '07 #4
" active" <ac**********@a-znet.comschrieb:
But by checking and unchecking and selecting Standard or ClearType many
times while not changing anything else I can verify what I said.

The font looks like it's been printed twice, with poor registration.
Once blue and once red.
This behavior is "by design" but can be fixed. The problem arises from the
way ClearType increases readability: RGB values of certain pixels
surrounding the text are manipulated. By drawing the same text several
times at the same position, those values get added up and are shown in the
wrong color. What you have to do is simply clearing the area on which you
want to draw the text.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Apr 30 '07 #5


I don't know why this Clear fixes it but I found by cut and try that it
does.

It occurred to me that I don't know what the bitmap pixels are set to if I
don't initialize (clear) them.

Do you know?

I suppose an un-initialize background might have some value that causes
problems.

Comment?

thanks

"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:%2*****************@TK2MSFTNGP06.phx.gbl...
>" active" <ac**********@a-znet.comschrieb:
>But by checking and unchecking and selecting Standard or ClearType many
times while not changing anything else I can verify what I said.

The font looks like it's been printed twice, with poor registration.
Once blue and once red.

This behavior is "by design" but can be fixed. The problem arises from
the way ClearType increases readability: RGB values of certain pixels
surrounding the text are manipulated. By drawing the same text several
times at the same position, those values get added up and are shown in the
wrong color. What you have to do is simply clearing the area on which you
want to draw the text.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

May 1 '07 #6
Trying things I found that initializing the bitmap to some color before I
draw the strings fixes it.
I don't know what the bitmap pixels are set to if I don't initialize them.

Do you know?

Thanks again

"rowe_newsgroups" <ro********@yahoo.comwrote in message
news:11**********************@h2g2000hsg.googlegro ups.com...
On Apr 30, 12:39 pm, " active" <activeNOS...@a-znet.comwrote:
>No, It's really a complex application with library and a few projects.

But by checking and unchecking and selecting Standard or ClearType many
times while not changing anything else I can verify what I said.

The font looks like it's been printed twice, with poor registration.
Once blue and once red.

Thanks a lot for trying

"rowe_newsgroups" <rowe_em...@yahoo.comwrote in message

news:11*********************@e65g2000hsc.googlegr oups.com...
On Apr 30, 4:31 am, " active" <activeNOS...@a-znet.comwrote:
In control panel/Display/Appearance/Effects if :
>'Use the following method to smooth edges of screen fonts' is checked
and
>ClearType is selected in the combobox (no problem if Standard is
selected)
>I get a crazy font display in parts of my picturebox.
>Do you have any info regarding this?
>Thanks for any help!
You don't have a small sample app that demonstrates this do you? I
have been experimenting and can't get the error to reproduce.
Thanks,
Seth Rowe

I've had plenty of problems with ClearType displaying correctly, but
not in any of my applications. I notice plenty of font "smearing" in
MS Access 2007 forms and Powerpoint.

Have you tried forcing the picturebox to refresh itself by calling
PictureBox.Invalidate() or PictureBox.Refresh()? I not sure if the
picturebox supports them, but you could even experiment with
Control.SetStyle and tell the picturebox to use
(Optimized)DoubleBuffer or maybe Antialiasing - perhaps one of those
will clear up the font.

By the way, how are you putting the text into the picturebox? Are you
printing it with GDI DrawString or using a label etc...

Thanks,

Seth Rowe

May 1 '07 #7

The pixel values of a newly created bitmap are (0,0,0,0)
Transparent black.

Sort of a wierd color to draw strings on.

My bitmap displays a white but I now believe it's the background pixels I
see, not the Image (bitmap) pixels.

Don't know what smooth edges does but doing it with transparent black might
be the problem.

Do you know of a description of what smooth edges does?


May 1 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3536
by: Salgoud Dell | last post by:
I have a VB6 application running on a French computer using Windows ME. The app doesn't work the same way as it does when running on an English Windows OS. The main issue I have, that I can't...
6
2417
by: Uttam | last post by:
Hello, I am using the code from Chapter 17 specifically the code from the font frmListFonts in my application. I have taken care to copy all the relevant modules / class modules into the...
2
1715
by: George | last post by:
I have marked the areas with comments as to what I would like to do and what the code does. The two problem areas are in the key pressing and mousing clicking areas. thanks for the help. This...
2
3537
by: CMEDIA_SOUND | last post by:
I have a peculiar problem, I have a tabpage with a label control on it. When i set a background image to the tabpage and drag the label around it has paint issues in that it is slow, granted the...
3
2540
by: Larry Serflaten | last post by:
I am taking a 256 color bitmap from a file and scaling it up X 16 to a 32bppPARGB bitmap in memory. I copy that image to the screen. After scaling, the edges of all the lines and colors are...
7
1594
by: Galen Somerville | last post by:
My original program was targetted to Win98 when 800 x 600 was popular. Now converted to VB2005 pro and minimum will be 1024 x 768. I know about the autoresizing at run time but I want the form...
70
14941
by: axlq | last post by:
I'm trying to design my style sheets such that my pages have similar-looking fonts different platforms (Linux, Mac, Adobe, X-Windows, MS Windows, etc). The problem is, a font on one platform...
1
3540
by: PankajGaur | last post by:
Hi, I need to create a Ellipse shaped user control which have folloiwng attributes: 1) The edges are smooth 2) The control shuld only be selected when click on the ellipse shape & not when...
0
1364
by: =?Utf-8?B?UGFua2FqR2F1cg==?= | last post by:
Hi, I need to create a Ellipse shaped user control which have folloiwng attributes: 1) The edges are smooth 2) The control shuld only be selected when click on the ellipse shape & not when...
0
7126
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
7005
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
7168
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
7210
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...
1
6891
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...
1
4916
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...
0
3087
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
659
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
293
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.