imagettftext w/o anti alias in small font sizes -> ugly

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • blickensdoerfer@googlemail.com

    imagettftext w/o anti alias in small font sizes -> ugly

    i have a problem using ImageTTFText: I want a Text in Arial , 8pt,
    without Anti-Aliasing . The result is very ugly, how can i get it
    proper like it would be displayed in the browser window or photoshop?
    i tried a lot of things and searched, but did not find a solution to
    this...help is very much appreciated! thank you
  • Richard

    #2
    Re: imagettftext w/o anti alias in small font sizes -> ugly


    <blickensdoerfe r@googlemail.co mwrote in message
    news:c6438c88-6864-4154-80ff-b2cae51f2e29@t5 4g2000hsg.googl egroups.com...
    >i have a problem using ImageTTFText: I want a Text in Arial , 8pt,
    without Anti-Aliasing . The result is very ugly, how can i get it
    proper like it would be displayed in the browser window or
    photoshop?
    i tried a lot of things and searched, but did not find a solution to
    this...help is very much appreciated! thank you
    Sorry to disappoint you, but it is not possible.

    Without anti-aliasing or grey-scale interpolation, you can not get
    smooth small text on a screen.

    Consider this:
    8 points would be around 8 pixels at 72 DPI. Try to draw a character
    in those dimensions. You get pixelated graphics.

    Which browser are you talking about anyway?
    What OS?

    All OSes and browsers have smooth text, meaning they do anti-aliasing
    automatically.

    Richard.

    BTW:
    There is no such unit as a Point on a computer screen. The only real
    unit on a screen is a pixel. Points are for printing.


    Comment

    • blickensdoerfer@googlemail.com

      #3
      Re: imagettftext w/o anti alias in small font sizes -&gt; ugly

      maybe this helps explaining:


      you can't see too much text unfortunately, but look at the "0"...it's
      noch displayed correct an so are all other characters...

      Comment

      • George Maicovschi

        #4
        Re: imagettftext w/o anti alias in small font sizes -&gt; ugly

        Try writing to another image handler with 32px font and then copy it
        in your image using imagecopyresamp led() and making it's width and
        height half of what it was...It's a trick I use for smoothing without
        andti-aliasing and it should give you better results, but not as
        smooth as you are hoping.

        Regards,
        George Maicovschi.

        Comment

        • blickensdoerfer@googlemail.com

          #5
          Re: imagettftext w/o anti alias in small font sizes -&gt; ugly

          Hi George,

          thx for the tip.
          I will try that out now, the thing is: i dont want it to be anti-
          aliased or smoothed in any way, but displayed just like it would be in
          the browser window if you display it with font-size 11px..

          greetings

          stefan

          On Apr 1, 9:58 pm, George Maicovschi <georgemaicovs. ..@gmail.com>
          wrote:
          Try writing to another image handler with 32px font and then copy it
          in your image using imagecopyresamp led() and making it's width and
          height half of what it was...It's a trick I use for smoothing without
          andti-aliasing and it should give you better results, but not as
          smooth as you are hoping.
          >
          Regards,
          George Maicovschi.

          Comment

          • Richard

            #6
            Re: imagettftext w/o anti alias in small font sizes -&gt; ugly


            <blickensdoerfe r@googlemail.co mwrote in message
            news:93ad4a24-6708-4f95-8d54-4ccef2f5fa49@s1 9g2000prg.googl egroups.com...
            Hi George,
            >
            thx for the tip.
            I will try that out now, the thing is: i dont want it to be anti-
            aliased or smoothed in any way, but displayed just like it would be
            in
            the browser window if you display it with font-size 11px..
            >
            greetings
            >
            stefan
            >
            On Apr 1, 9:58 pm, George Maicovschi <georgemaicovs. ..@gmail.com>
            wrote:
            >Try writing to another image handler with 32px font and then copy
            >it
            >in your image using imagecopyresamp led() and making it's width and
            >height half of what it was...It's a trick I use for smoothing
            >without
            >andti-aliasing and it should give you better results, but not as
            >smooth as you are hoping.
            >>
            >Regards,
            >George Maicovschi.
            >
            Stefan,
            browser text IS anti-aliased in just about ALL browsers.
            It is the OS that takes care of that.

            You have to go back to WIN95 or Mac OS8 to see non-anti-aliased text
            on screen...

            Check here:


            Richard.



            Comment

            • blickensdoerfer@googlemail.com

              #7
              Re: imagettftext w/o anti alias in small font sizes -&gt; ugly

              sorry, i'm not actually finding the right words:



              here is my problem ...

              On Apr 1, 10:39 pm, "Richard" <root@localhost wrote:
              <blickensdoer.. .@googlemail.co mwrote in message
              >
              news:93ad4a24-6708-4f95-8d54-4ccef2f5fa49@s1 9g2000prg.googl egroups.com...
              >
              >
              >
              Hi George,
              >
              thx for the tip.
              I will try that out now, the thing is: i dont want it to be anti-
              aliased or smoothed in any way, but displayed just like it would be
              in
              the browser window if you display it with font-size 11px..
              >
              greetings
              >
              stefan
              >
              On Apr 1, 9:58 pm, George Maicovschi <georgemaicovs. ..@gmail.com>
              wrote:
              Try writing to another image handler with 32px font and then copy
              it
              in your image using imagecopyresamp led() and making it's width and
              height half of what it was...It's a trick I use for smoothing
              without
              andti-aliasing and it should give you better results, but not as
              smooth as you are hoping.
              >
              Regards,
              George Maicovschi.
              >
              Stefan,
              browser text IS anti-aliased in just about ALL browsers.
              It is the OS that takes care of that.
              >
              You have to go back to WIN95 or Mac OS8 to see non-anti-aliased text
              on screen...
              >
              Check here:http://en.wikipedia.org/wiki/Font_rasterization
              >
              Richard.

              Comment

              • blickensdoerfer@googlemail.com

                #8
                Re: imagettftext w/o anti alias in small font sizes -&gt; ugly

                now i found my problem:


                Comment

                • Richard

                  #9
                  Re: imagettftext w/o anti alias in small font sizes -&gt; ugly


                  <blickensdoerfe r@googlemail.co mwrote in message
                  news:ad80e474-c9f8-4eb5-ba94-5e5611742242@e1 0g2000prf.googl egroups.com...I doubt it, since that doc is from 2003....

                  :(

                  R.


                  Comment

                  • George Maicovschi

                    #10
                    Re: imagettftext w/o anti alias in small font sizes -&gt; ugly

                    Richard,

                    His text is IN an image, I didn't know IE or any other browser
                    antialiases text in images :-)

                    Comment

                    • blickensdoerfer@googlemail.com

                      #11
                      Re: imagettftext w/o anti alias in small font sizes -&gt; ugly

                      On 2 Apr., 09:14, George Maicovschi <georgemaicovs. ..@gmail.com>
                      wrote:
                      Richard,
                      >
                      His text is IN an image, I didn't know IE or any other browser
                      antialiases text in images :-)
                      oh really??? ;) it's not about that. the picture is just an
                      explanation of how i want my text too look like. i think i used the
                      wrong words before (i should have left out the browsers, although my
                      browsers don't antialias small font-sizes), that's why there's such a
                      misunderstandin g...

                      Comment

                      • blickensdoerfer@googlemail.com

                        #12
                        Re: imagettftext w/o anti alias in small font sizes -&gt; ugly

                        now i found my problem:
                        >>
                        I doubt it, since that doc is from 2003....
                        >
                        :(
                        but since it is due too a patent, i think it's still the point. at
                        least when i'm going into the config-file of freetype sourcecode, that
                        special line is still disabled

                        Comment

                        Working...