Dynadot .com transfer sale, only $10.12 with coupon code DYNA12, available while supplies last, ends October 31, 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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
0
Close
Thanks. Yes, I didn't have a Chinese font. I will try to find one.
 
0
Close
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
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back