By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,546 Members | 862 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,546 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Share this Question
Share on Google+
7 Replies

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
" 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

P: n/a


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

P: n/a
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

P: n/a

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.