To output Chinese characters to images, do I need to install Chinese fonts on the server? How to install it? Where can I install it? Is it said that Chinese characters are also encoded? How does this encoding work? Knowledge path :) ------ solution ------------------ arrayimagettftext (resourceimage, floatsize, floatangle, intx, inty, I output Chinese to the image. Do I need to install Chinese fonts on the server?
How to install it? Where can I install it?
Is it said that Chinese characters are also encoded? How does this encoding work? Knowledge path :)
------ Solution --------------------
Array imagettftext (resource image, float size, float angle, int x, int y, int color, string fontfile, string text)
The fontfile parameter is the required directory.
As long as your server supports the ttf and ttc files
------ Solution --------------------
Yes.
------ Solution --------------------
Well, font support is required!
------ Solution --------------------
Ttf
------ Solution --------------------
1. Note the path
2. some fonts do not support Chinese characters
------ Solution --------------------
If you output two normal English letters or numbers, you can change the font.
Discussion
Reference:
1. Note the path
2. some fonts do not support Chinese characters
No problem with path, no complicated words,
Output the word "hello". nothing can be done with such a simple task: (angry dead birds ;(