![]() |
Make a 3D text by CJK characters.(experiment) - Printable Version +- Wings 3D Development Forum (https://www.wings3d.com/forum) +-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1) +--- Forum: Design & Development (https://www.wings3d.com/forum/forumdisplay.php?fid=6) +--- Thread: Make a 3D text by CJK characters.(experiment) (/showthread.php?tid=985) |
Make a 3D text by CJK characters.(experiment) - tkbd - 12-06-2014 Hello. Recently, I experimented that try to modify a wpc_tt.erl. To use non-latin(CJK) glyphs in 3D Text Object. So,I fumbled about trying to remove the 256 glyph Limit in the code. For now, one of the goal has been achieved. ScreenShot is following. ![]() ![]() ![]() ![]() Currently, there is only one way for input the CJK text in the text field. It is the way to change the string stored in the setting of Preference.txt,beforehand. Quote: {{wpc_tt,text},"CJK text is Here"}. Other way... PlanA : CJK text input by other text Input Method Engine. PlanB : Copy & paste from clipboard. PlanC : Load an external txt file,and update to text form by the containts. PlanD : Change text form through by Erlang Shell Hum...Several technical walls currently confronted ![]() At any rate,I need to test whether there are adverse effects due to remove the limit of the glyph. If there is anyone interested in this, I will tell the changes lines, etc.. RE: Make a 3D text by CJK characters.(experiment) - dgud - 12-08-2014 Please post, I did something when I converted it wxWidgets code. Don't remember if I fixed that. But I have written a TT parser for opengl in another project before I remembered that we had one in wings already, so I have fixed a couple of issues already. RE: Make a 3D text by CJK characters.(experiment) - tkbd - 12-09-2014 (12-08-2014, 11:50 AM)dgud Wrote: Please post, I did something when I converted it wxWidgets code. Don't remember if I fixed that. Thanks you dgud. I've uploaded a source file and the changed summary(png image). The Modifyed file is here This containes 3 files: difference.png and wpc_tt.erl wpc_tt.beam (Edit:add wpc_tt.beam,Note: Recognizes the UTF8 string only under certain conditions. set to cjk-font) Also, I have tested some in order to use non-Latin characters in wpc_tt. In Preference.txt,there is saved data use for wpc_tt plugin. when set to utf8 string...For example... Quote:{{wpc_tt,text},"春夏秋冬"}.But, when quit Wings application, then string had been save as list. Quote:{{wpc_tt,text},[26149,22799,31179,20908]}. (these number are utf8charcode).Although there was no effect on Wings Application's behavior,I was just wondering about this. I hope as Wings will be more convenient ![]() Best regards. |