Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 1, 2026.

Chinese characters and GD?

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

NuPagady

Established Member
Impact
2
Hi guys,

I'm trying to write a php+gd+imagettftext script which would support as many languages as possible. Everything seems to be working fine with European languages (German, Lithuanian..), but when I try to use Chinese characters, squares appears instead of Chinese characters (see the attached image).

Do you know how to successfully output Chinese characters by gd?


Thanks
- Paul
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
•••
Thanks. Yes, I didn't have a Chinese font. I will try to find one.
 
0
•••
Just a quick update:

I fixed the problem by using Microsoft's unicode Arial font:
arialuni.ttf

Everything works fine now. Thanks for help!
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back