472,146 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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 2878
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by George | last post: by
2 posts views Thread by CMEDIA_SOUND | last post: by
3 posts views Thread by Larry Serflaten | last post: by
7 posts views Thread by Galen Somerville | last post: by
reply views Thread by =?Utf-8?B?UGFua2FqR2F1cg==?= | last post: by
reply views Thread by Saiars | last post: by

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.