GT font render problem

If you've problems with unsupported - non official ;-) - functionalities use this forum please.
Post Reply
Paal
Posts: 204
Joined: Wed 6. Oct 2004, 19:54
Location: Budapest, Hungary
Contact:

GT font render problem

Post by Paal »

Hello,

I try Polo-Regular font, but rendered img have some problem...

The GT mod rendered img
Image

and Photoshop out:
Image

Why? ("g" spell, and "őű")

I use ISO-8859-2 caracter encoding in html pages.

Thx, Paul
User avatar
isac
Posts: 410
Joined: Tue 18. Nov 2003, 13:13
Location: Portugal
Contact:

Post by isac »

I think the problem is that photoshop render type at 72dpi and gd/php at 96dpi or vice-versa(?) to workaround this problem increase margin in file gt.func.inc.php at lines

Code: Select all

		//$im = imagecreate ($font_width + 5, $font_height + 5);
	$im = imagecreate ($font_width+2, $font_height);
please correct me if i'm wrong
Paal
Posts: 204
Joined: Wed 6. Oct 2004, 19:54
Location: Budapest, Hungary
Contact:

Post by Paal »

isac wrote:I think the problem is that photoshop render type at 72dpi and gd/php at 96dpi or vice-versa(?) to workaround this problem increase margin in file gt.func.inc.php at lines

Code: Select all

		//$im = imagecreate ($font_width + 5, $font_height + 5);
	$im = imagecreate ($font_width+2, $font_height);
please correct me if i'm wrong
Correct!

Code: Select all

	//$im = imagecreate ($font_width + 5, $font_height + 5);
	$im = imagecreate ($font_width+2, $font_height+5);

Thx, Paul

But the charset error still exist:
in iso-8859-1 charset:
Image

in iso-8859-2 charcet (Central European):

Code: Select all

őŐűŰ
but rendered character constain "curly accent"
like ~ not "

Why?

Thx, Paul

and sorry my bad english... :(
Post Reply