473,746 Members | 2,211 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 2996
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_newsgroup s" <ro********@yah oo.comwrote in message
news:11******** *************@e 65g2000hsc.goog legroups.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_newsgroup s" <rowe_em...@yah oo.comwrote in message

news:11******** *************@e 65g2000hsc.goog legroups.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.Inva lidate() or PictureBox.Refr esh()? I not sure if the
picturebox supports them, but you could even experiment with
Control.SetStyl e and tell the picturebox to use
(Optimized)Doub leBuffer 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******** *********@TK2MS FTNGP06.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_newsgroup s" <ro********@yah oo.comwrote in message
news:11******** **************@ h2g2000hsg.goog legroups.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_newsgrou ps" <rowe_em...@yah oo.comwrote in message

news:11******* **************@ e65g2000hsc.goo glegroups.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.Inva lidate() or PictureBox.Refr esh()? I not sure if the
picturebox supports them, but you could even experiment with
Control.SetStyl e and tell the picturebox to use
(Optimized)Doub leBuffer 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
3550
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 seem to overcome, is that the english text font size my program thinks is available doesn't seem to be there. Although a line of text printed on a US Windows machine looks fine, when it is printed from this French computer the tabs are over written...
6
2435
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 respective files / folders etc. Nevertheless, I get the following error when I start my application: Compile error; Sub or Function not defined
2
1745
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 code outputs a set of lines on the screen in different colors /*****************************­*************** ** problem2 .c ** ** --------------- **
2
3564
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 image i am using is 5mb!!! HOWEVER... I have inherited the tabpage created an Image reference in it, and overrriden the onPaint method to draw the image now if i press a button that sets the background image of the control
3
2559
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 blurred. I want the edges all crisp, including inherent pixelation (jaggies). Setting smoothing to none, or adjusting the composting mode on the Graphics object still
7
1615
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 designer to be at 1024 x768. Naturally, after conversion from VB6, it is at 800 x 600 (actually 800 x 554 or thereabouts). Other than manually (and laboriously) moving all the controls, is there a better way to do it?
70
15055
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 might be the same as a font on another platform, but with different names. I'd like to be able to specify the font names that are "most equivalent." For example, "Lucida Console" is a very attractive and readable monospaced font available in...
1
3572
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 click on the empty area of Client Rectangle What I have done so far: I override the OnPaintMethod as below:
0
1377
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 click on the empty area of Client Rectangle What I have done so far: I override the OnPaintMethod as below:
0
8970
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9491
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8221
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6766
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6057
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4573
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3288
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2761
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2196
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.