LabelFX is rather thin when shown vertcally

Viewing 20 posts - 1 through 20 (of 23 total)
  • Author
    Posts
  • #59013
    Support
    Keymaster

      Thank you for the demo, I will check it soon.

      #59054
      HeDiBo
      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.

        #59063
        Support
        Keymaster

          This text is rendered by Windows text API procedures.

          Try to set the Quality of Font property to the ClearType, maybe it helps.

          #59073
          Stephane Senecal
          Participant

            Maybe TsLabelFX could use GDI+ DrawString instead of GDI DrawText?

            Stephane Senecal
            CIS Group
            Delphi programmer since 2001

            #59092
            HeDiBo
            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?

              #59099
              Support
              Keymaster

                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.

                #59113
                HeDiBo
                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.

                  #59115
                  Stephane Senecal
                  Participant

                    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.

                    Stephane Senecal
                    CIS Group
                    Delphi programmer since 2001

                    #59119
                    HeDiBo
                    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 bravo.gif

                      #59134
                      Support
                      Keymaster

                        Look my test of the GdipDrawString procedure.

                        Sources I can send by PM, if needed.

                        #59135
                        Stephane Senecal
                        Participant

                          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.”

                          Stephane Senecal
                          CIS Group
                          Delphi programmer since 2001

                          #59136
                          Support
                          Keymaster

                            What is your Windows version number?

                            #59138
                            JM-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.

                              #59139
                              Stephane Senecal
                              Participant

                                Windows 10.0.17763.292

                                Stephane Senecal
                                CIS Group
                                Delphi programmer since 2001

                                #59140
                                Stephane Senecal
                                Participant

                                  I'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 2001

                                  #59149
                                  HeDiBo
                                  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.

                                    #59162
                                    Support
                                    Keymaster

                                      The 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?

                                      #59166
                                      Stephane Senecal
                                      Participant

                                        It'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 2001

                                        #59167
                                        HeDiBo
                                        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.

                                          #59173
                                          HeDiBo
                                          Participant
                                            'Support' wrote:

                                            The 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?

                                            Did you change the implementation? Because with version 4.17 I do not see any difference.

                                          Viewing 20 posts - 1 through 20 (of 23 total)
                                          • You must be logged in to reply to this topic.