Home All Groups Group Topic Archive Search About

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

Author
30 Apr 2007 8:31 AM
active
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!

Author
30 Apr 2007 1:44 PM
rowe_newsgroups
On Apr 30, 4:31 am, "  active" <activeNOS***@a-znet.com> wrote:
> 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
Author
30 Apr 2007 4:39 PM
active
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


Show quoteHide quote
"rowe_newsgroups" <rowe_em***@yahoo.com> wrote in message
news:1177940647.736260.60350@e65g2000hsc.googlegroups.com...
> On Apr 30, 4:31 am, "  active" <activeNOS***@a-znet.com> wrote:
>> 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
>
Author
30 Apr 2007 5:41 PM
rowe_newsgroups
Show quote Hide quote
On Apr 30, 12:39 pm, "  active" <activeNOS***@a-znet.com> wrote:
> 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.com> wrote in message
>
> news:1177940647.736260.60350@e65g2000hsc.googlegroups.com...
>
> > On Apr 30, 4:31 am, "  active" <activeNOS***@a-znet.com> wrote:
> >> 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
Author
1 May 2007 12:32 AM
active
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

Show quoteHide quote
"rowe_newsgroups" <rowe_em***@yahoo.com> wrote in message
news:1177954902.885495.223310@h2g2000hsg.googlegroups.com...
> On Apr 30, 12:39 pm, "  active" <activeNOS***@a-znet.com> wrote:
>> 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.com> wrote in message
>>
>> news:1177940647.736260.60350@e65g2000hsc.googlegroups.com...
>>
>> > On Apr 30, 4:31 am, "  active" <activeNOS***@a-znet.com> wrote:
>> >> 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
>
Author
30 Apr 2007 9:36 PM
Herfried K. Wagner [MVP]
" active" <activeNOSPAM@a-znet.com> schrieb:
> 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/>
Author
1 May 2007 12:28 AM
active
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



Show quoteHide quote
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
news:%23CUFV%232iHHA.596@TK2MSFTNGP06.phx.gbl...
>" active" <activeNOSPAM@a-znet.com> schrieb:
>> 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/>
Author
1 May 2007 1:16 AM
active
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?