faqts : Computers : Programming : Languages : PHP : Common Problems : Tips and Tricks

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 20 people (40%) answered Yes
Recently 3 of 10 people (30%) answered Yes

Entry

How to display other language (Chinese Big 5) with imagestring() function?

Feb 29th, 2000 13:08
Matt Gregory, Max Kwok,


There is no real way to do this under the current archetecture because 
the ImageString function assumes a 1 character to 1 font (see 
imageloadfont) correlation.  You can B.S. your way into doing this by 
using a subset of the chinese fonts and create your own font.  Then use 
the imageloadfont to load your font and pass it to the imagestring 
function.