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
Re: imagettftext w/o anti alias in small font sizes -> ugly
<blickensdoerfer [at] googlemail.com> wrote in message
news:c6438c88-6864-4154-80ff-b2cae51f2e29 [at] t54g2000hsg.google groups.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.
Re: imagettftext w/o anti alias in small font sizes -> ugly
maybe this helps explaining:
http://img170.imageshack.us/img170/636/testsu2.jpg
you can't see too much text unfortunately, but look at the "0"...it's
noch displayed correct an so are all other characters...
Re: imagettftext w/o anti alias in small font sizes -> ugly
Try writing to another image handler with 32px font and then copy it
in your image using imagecopyresampled() 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.
Re: imagettftext w/o anti alias in small font sizes -> 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... [at] gmail.com>
wrote:
> Try writing to another image handler with 32px font and then copy it
> in your image using imagecopyresampled() 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.
Re: imagettftext w/o anti alias in small font sizes -> ugly
<blickensdoerfer [at] googlemail.com> wrote in message
news:93ad4a24-6708-4f95-8d54-4ccef2f5fa49 [at] s19g2000prg.google groups.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... [at] gmail.com>
> wrote:
>> Try writing to another image handler with 32px font and then copy
>> it
>> in your image using imagecopyresampled() 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.
Re: imagettftext w/o anti alias in small font sizes -> ugly
sorry, i'm not actually finding the right words:
http://img368.imageshack.us/img368/8504/gderroryu9.jpg
here is my problem ...
On Apr 1, 10:39 pm, "Richard" <root [at] localhost> wrote:
> <blickensdoer... [at] googlemail.com> wrote in message
>
> news:93ad4a24-6708-4f95-8d54-4ccef2f5fa49 [at] s19g2000prg.google groups.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... [at] gmail.com>
> > wrote:
> >> Try writing to another image handler with 32px font and then copy
> >> it
> >> in your image using imagecopyresampled() 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.
Re: imagettftext w/o anti alias in small font sizes -> ugly
now i found my problem:
http://bugs.php.net/bug.php?id=25928&edit=1
Re: imagettftext w/o anti alias in small font sizes -> ugly
<blickensdoerfer [at] googlemail.com> wrote in message
news:ad80e474-c9f8-4eb5-ba94-5e5611742242 [at] e10g2000prf.google groups.com...
> now i found my problem:
>
> http://bugs.php.net/bug.php?id=25928&edit=1
I doubt it, since that doc is from 2003....
:(
R.
Re: imagettftext w/o anti alias in small font sizes -> ugly
Richard,
His text is IN an image, I didn't know IE or any other browser
antialiases text in images :-)
Re: imagettftext w/o anti alias in small font sizes -> ugly
On 2 Apr., 09:14, George Maicovschi <georgemaicovs... [at] 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
misunderstanding...
Re: imagettftext w/o anti alias in small font sizes -> ugly
> > now i found my problem:
>
> >http://bugs.php.net/bug.php?id=25928&edit=1
>
> 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
Re: imagettftext w/o anti alias in small font sizes -> ugly
Richard wrote:
> <blickensdoerfer [at] googlemail.com> wrote in message
> news:93ad4a24-6708-4f95-8d54-4ccef2f5fa49 [at] s19g2000prg.google groups.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... [at] gmail.com>
>> wrote:
>>> Try writing to another image handler with 32px font and then copy
>>> it
>>> in your image using imagecopyresampled() 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.
>
>
>
Or you can disable smoothing in Windows Xp and check it out on IE 6 or
Firefox. IE 7 smooths the text by default.
Desktop -> Right click -> Properties -> Appearance -> Effects -> Uncheck
Smoothing of fonts (either clear-type or normal).
Best,
Animesh
PHP » comp.lang.php » imagettftext w/o anti alias in small font sizes -> ugly