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

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
blickensdoerfer [ Di, 01 April 2008 21:36 ] [ ID #1933018 ]

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

On 1 Apr., 21:36, "blickensdoer... [at] googlemail.com"
<blickensdoer... [at] 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
Cem [ Mi, 02 April 2008 10:06 ] [ ID #1933978 ]

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

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...
blickensdoerfer [ Mi, 02 April 2008 10:19 ] [ ID #1933979 ]

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

On 2 Apr., 10:19, "blickensdoer... [at] googlemail.com"
<blickensdoer... [at] 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
Cem [ Mi, 02 April 2008 11:16 ] [ ID #1933980 ]

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

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
blickensdoerfer [ Do, 03 April 2008 20:51 ] [ ID #1934889 ]
PHP » alt.php » ImageTTFText w/o anti-aliasing @ 11px -> ugly

Vorheriges Thema: Variable contains numbers spaces and text.
Nächstes Thema: PHP blocks session_start while other PHP instance is running