ImageTTFText w/o anti-aliasing @ 11px -> ugly

ImageTTFText w/o anti-aliasing @ 11px -> ugly

am 01.04.2008 21:36:28 von blickensdoerfer

hi

i have a problem with imageTTFText in my image:
i want to display a text in 11px Arial, but the result is very ugly:
http://img170.imageshack.us/my.php?image=testsu2.jpg
the characters are messed up somehow...how can i get it to display
that font (without antialiasing!) in a correct way (just like a
browser or photoshop displays it...)? is this possible?
i'm running out of ideas
thank you very much

stefan

Re: ImageTTFText w/o anti-aliasing @ 11px -> ugly

am 02.04.2008 10:06:28 von Cem

On 1 Apr., 21:36, "blickensdoer...@googlemail.com"
wrote:
> i have a problem with imageTTFText in my image:
> i want to display a text in 11px Arial, but the result is very ugly:http://img170.imageshack.us/my.php?image=testsu2.jpg
> the characters are messed up somehow...how can i get it to display
> that font (without antialiasing!) in a correct way (just like a
> browser or photoshop displays it...)? is this possible?
> i'm running out of ideas
> thank you very much

Hi Stefan,

did you try to set the size to 10 or 12 px? However, do you use GD1 or
GD2?

Cheers,

Cem

Re: ImageTTFText w/o anti-aliasing @ 11px -> ugly

am 02.04.2008 10:19:46 von blickensdoerfer

hi cem

> did you try to set the size to 10 or 12 px? However, do you use GD1 or
> GD2?

yes i did. using GD2 btw.
but i think i found the core of the problem: it's that freetype is
compiled without the usage of the bytecode interpreter (which is for
some patent reasons). that causes the problems...

Re: ImageTTFText w/o anti-aliasing @ 11px -> ugly

am 02.04.2008 11:16:59 von Cem

On 2 Apr., 10:19, "blickensdoer...@googlemail.com"
wrote:
> hi cem
>
> > did you try to set the size to 10 or 12 px? However, do you use GD1 or
> > GD2?
>
> yes i did. using GD2 btw.

The original documentation says, that GD2 expects pt-values for size.
Maybe that's the problem?

Cheers,

Cem

Re: ImageTTFText w/o anti-aliasing @ 11px -> ugly

am 03.04.2008 20:51:42 von blickensdoerfer

it's the same with any small value..i now tried ImageMagick and had
the same problems with small font sizes...not as bad as in GD but
still not like it should be

> > > did you try to set the size to 10 or 12 px? However, do you use GD1 or
> > > GD2?
>
> > yes i did. using GD2 btw.
>
> The original documentation says, that GD2 expects pt-values for size.
> Maybe that's the problem?
>
> Cheers,
>
> Cem