imagettftext() and East Asian Font rendering

imagettftext() and East Asian Font rendering

am 02.12.2009 21:12:58 von hSiplu

Hello,

I am creating an app where I have to show east asian text in image.
Those are utf8. Problem is when I try to display "কি à¦=
¹à¦šà§à¦›à§=87" in image,
it shows "à¦=95 à¦=BF à¦=B9 à¦=9A à§=8D à¦=9B =E0=
§‡"  without the circles.
How do I show it correctly.

Note: I am generating image, not html file.



--=20
A K M Mokaddim
My talks, talk.cmyweb.net
Follow me, twitter.com/shiplu

Innovation distinguishes bet ... ... (ask Steve Jobs the rest)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: imagettftext() and East Asian Font rendering

am 03.12.2009 11:47:49 von Ashley Sheridan

--=-XbnTu1fTfSBy42E+wyEK
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Thu, 2009-12-03 at 03:12 +0700, shiplu wrote:

> Hello,
>=20
> I am creating an app where I have to show east asian text in image.
> Those are utf8. Problem is when I try to display "কি =E0=
¦¹à¦šà§à¦›à§‡" in image,
> it shows "à¦=95 à¦=BF à¦=B9 à¦=9A à§=8D à¦=9B =E0=
§‡" without the circles.
> How do I show it correctly.
>=20
> Note: I am generating image, not html file.
>=20
>=20
>=20
> --=20
> A K M Mokaddim
> My talks, talk.cmyweb.net
> Follow me, twitter.com/shiplu
>=20
> Innovation distinguishes bet ... ... (ask Steve Jobs the rest)
>=20


Erm, I'm not seeing the issue from your email. I can see the characters
in both examples, but the latter one has the dotted circles in. Is it
that your characters aren't displaying correctly? If you're creating the
images with GD, then you should note that it has a problem with any font
where the outlines have not been specified correctly for a glyph.
Usually I get this with accented characters like you are using in
OpenType fonts. There are some font programs which can attempt to
re-create the outlines that you might be able to use.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--=-XbnTu1fTfSBy42E+wyEK--