- This topic has 23 replies, 4 voices, and was last updated 5 years, 7 months ago by
HeDiBo.
-
AuthorPosts
-
January 30, 2019 at 4:37 pm #38140
HeDiBo
ParticipantThis is a sample of a couple of LabelFX controls:
[attachment=9125:LabelFXTooThin.jpg]
As you can see, the left one is very thin.
This is the test project: [attachment=9126:acLabelFX.zip]
February 1, 2019 at 6:15 am #59013Support
KeymasterThank you for the demo, I will check it soon.
February 10, 2019 at 3:15 pm #59054HeDiBo
Participant'Support' wrote:Thank you for the demo, I will check it soon.
Apparently you changed things. But I'm not happy. The texts now seem distorted and have uneven thickness:
[attachment=9146:LabelFXDistorted.jpg]
Look for example at the two consecutive el's in Instellingen.
The cause for these problems is lack of anti-aliassing.
February 12, 2019 at 6:07 am #59063Support
KeymasterThis text is rendered by Windows text API procedures.
Try to set the Quality of Font property to the ClearType, maybe it helps.
February 12, 2019 at 1:29 pm #59073Stephane Senecal
ParticipantMaybe TsLabelFX could use GDI+ DrawString instead of GDI DrawText?
Stephane Senecal
CIS Group
Delphi programmer since 2001February 15, 2019 at 4:34 pm #59092HeDiBo
Participant'Support' wrote:This text is rendered by Windows text API procedures.
Try to set the Quality of Font property to the ClearType, maybe it helps.
Stephane Senecal made an interesting remark.
Could you comment on that?
February 19, 2019 at 5:43 am #59099Support
KeymasterI will try to make it soon, but I'm not sure that GDI+ string drawing will work better than GDI with ClearType.
I will check it.
February 19, 2019 at 10:16 am #59113HeDiBo
Participant'Support' wrote:I will try to make it soon, but I'm not sure that GDI+ string drawing will work better than GDI with ClearType.
I will check it.
To clarify: the letter type (Trebuchet MS) and the quality of font (ClearType) cannot be the cause.
February 19, 2019 at 1:26 pm #59115Stephane Senecal
ParticipantFrom what I tried, it seemed to output better result with DrawString from GDI+.
GDI+ does not use the same algorithm than GDI. Another weird thing from Microsoft.
More over, there is also DirectWrite / Direct2D, but those function use the GPU. I think it would be a little bit overkill.
Stephane Senecal
CIS Group
Delphi programmer since 2001February 19, 2019 at 4:52 pm #59119HeDiBo
Participant'Stephane wrote:From what I tried, it seemed to output better result with DrawString from GDI+.
GDI+ does not use the same algorithm than GDI. Another weird thing from Microsoft.
More over, there is also DirectWrite / Direct2D, but those function use the GPU. I think it would be a little bit overkill.
In GDI+ text rendering is done completely in software. That makes it both slower but also different from GDI.
Thanks Stephane for your illuminating input
February 20, 2019 at 12:27 pm #59134Support
KeymasterLook my test of the GdipDrawString procedure.
Sources I can send by PM, if needed.
February 20, 2019 at 2:02 pm #59135Stephane Senecal
ParticipantIt crashes at startup with “Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item.”
Stephane Senecal
CIS Group
Delphi programmer since 2001February 20, 2019 at 2:19 pm #59136Support
KeymasterWhat is your Windows version number?
February 20, 2019 at 2:44 pm #59138JM-DG
Participant'Stephane wrote:It crashes at startup with “Windows cannot access the specified device, path or file. You may not have the appropriate permissions to access the item.”
Mmm, weird. It works fine on my end.
February 20, 2019 at 3:32 pm #59139Stephane Senecal
ParticipantWindows 10.0.17763.292
Stephane Senecal
CIS Group
Delphi programmer since 2001February 20, 2019 at 3:36 pm #59140Stephane Senecal
ParticipantI've tried in a VM with Windows 10 too and it works there. weird.
You can stop investigate since it's just a sample project.
Stephane Senecal
CIS Group
Delphi programmer since 2001February 21, 2019 at 1:46 pm #59149HeDiBo
Participant'Support' wrote:Look my test of the GdipDrawString procedure.
Sources I can send by PM, if needed.
The point of this exercise is: do the texts look OK when drawn in an angle.
Your test shows that they do look fine on my system. Having the same test with GDI would give the definitive answer.
PS. I do not have the reported problem. On my Windows 10 Pro system it works fine.
February 25, 2019 at 6:03 am #59162Support
KeymasterThe text is drawn better under Win 10, but it looks same under Windows 7.
I'm searching the best solution now.
Stephane Senecal, I need to find why it was crashed on your side. This error is repeatable still?
February 25, 2019 at 1:44 pm #59166Stephane Senecal
ParticipantIt's the anti-virus (Windows Defender) that prevent execution.
From what i have researched, it seems like the anti-virus thinks it's a ransomware.
I hope it's a false positive.
Stephane Senecal
CIS Group
Delphi programmer since 2001February 25, 2019 at 4:01 pm #59167HeDiBo
Participant'Stephane wrote:I hope it's a false positive.
It is: my virus checker does not find a problem. I had a false positive with WIndows Defender before. That virus checker sucks.
-
AuthorPosts
- You must be logged in to reply to this topic.