|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Problem with: Use the following method to smooth edges of screen fonts: if ClearType is selectedIn 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! On Apr 30, 4:31 am, " active" <activeNOS***@a-znet.com> wrote: You don't have a small sample app that demonstrates this do you? I> 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! have been experimenting and can't get the error to reproduce. Thanks, Seth Rowe 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 >
Show quote
Hide quote
On Apr 30, 12:39 pm, " active" <activeNOS***@a-znet.com> wrote: I've had plenty of problems with ClearType displaying correctly, but> 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 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 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 > " active" <activeNOSPAM@a-znet.com> schrieb: This behavior is "by design" but can be fixed. The problem arises from the > 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. 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/> 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/> 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? |
|||||||||||||||||||||||