[Bf-committers] Support displaying of non-ASCII filename

2010-04-26 Thread Yaohua Xiong
Hi, all I've add this patch in the hope that it will make displaying non-ASCII(more specifically CJK) filename possible. Currently I'm looking for a way to change the gui font to test it. Any suggestions? Thanks in advance. Best regards, Yaohua Xiong [#22176] Make winstuff to use unicode api Mo

Re: [Bf-committers] Support displaying of non-ASCII filename

2010-04-26 Thread Nathan Letwory
Hi, Ah, sounds like a great patch. I'll test this too in the coming days. Check http://en.wikipedia.org/wiki/Free_software_Unicode_typefaces to find fonts to test with. /Nathan (jesterKing) On 04/27/2010 05:02 AM, Yaohua Xiong wrote: > Hi, all > I've add this patch in the hope that it will mak

Re: [Bf-committers] Support displaying of non-ASCII filename

2010-04-27 Thread Yaohua Xiong
Thanks Nathan. I'm using a simplified Chinese windows 7 with a bunch of CJK fonts, I'm just looking for a way to make blender use them. It looks like Blender use a font that is hard wired in header files and there is no obvious way to change it. Best regards, Yaohua Xiong On Tue, Apr 27, 2010 a

Re: [Bf-committers] Support displaying of non-ASCII filename

2010-04-27 Thread Diego B
On Tue, Apr 27, 2010 at 6:35 AM, Yaohua Xiong wrote: > Thanks Nathan. > > I'm using a simplified Chinese windows 7 with a bunch of CJK fonts, > I'm just looking for a way to make blender use them. It looks like > Blender use a font that is hard wired in header files and there is no > obvious way

Re: [Bf-committers] Support displaying of non-ASCII filename

2010-04-27 Thread Rob M
April 27, 2010 10:35 AM > To: jesterk...@letwory.net; bf-blender developers > Subject: Re: [Bf-committers] Support displaying of non-ASCII filename > > Thanks Nathan. > > I'm using a simplified Chinese windows 7 with a bunch of CJK fonts, > I'm just looking for a way to make ble

Re: [Bf-committers] Support displaying of non-ASCII filename

2010-04-27 Thread Yaohua Xiong
Hi Diego, > Yes, the default font of blender is an internal font and there is no way to > change this now, the blenfont support read font from files, but I don't > finish the UI part to allow the user to select the font. Is there a way to change the font through a simple hack? After all, a generi

Re: [Bf-committers] Support displaying of non-ASCII filename

2010-04-27 Thread Diego B
On Tue, Apr 27, 2010 at 7:53 AM, Yaohua Xiong wrote: > Hi Diego, > > > Yes, the default font of blender is an internal font and there is no way > to > > change this now, the blenfont support read font from files, but I don't > > finish the UI part to allow the user to select the font. > > Is ther

Re: [Bf-committers] Support displaying of non-ASCII filename

2010-04-27 Thread Yaohua Xiong
Hi Rob, > I don't think it will work. As I discovered when developing the patch > "[#21836] There are problems running blender using UNC paths" there are more > places where blender uses file and path names than just winstuff.c and they > are not wide character or even utf-8 compatible. I expe

Re: [Bf-committers] Support displaying of non-ASCII filename

2010-04-27 Thread Yaohua Xiong
Thanks, Diego. It's working! The initial results looks good :-) http://www.pasteall.org/pic/show.php?id=2968 I'll do further test. On Tue, Apr 27, 2010 at 7:00 PM, Diego B wrote: > On Tue, Apr 27, 2010 at 7:53 AM, Yaohua Xiong wrote: > >> Hi Diego, >> >> > Yes, the default font of blender is

Re: [Bf-committers] Support displaying of non-ASCII filename

2010-04-27 Thread Yaohua Xiong
Hi all, With the help of Diego I can change the GUI fonts and make some test. With several further modification the file browser looks working but fail to open blender file with Non-Unicode name or in Non-Unicode path. I think it's because the file handling function in C runtime lib can't handle

Re: [Bf-committers] Support displaying of non-ASCII filename

2010-04-27 Thread Drip Stone
Hello Yaohua, For displaying Chinese characters in Blender file browser on Windows, I convert file name and path string to UTF-8 and later display them. When opening files, I use old string, which usually needs 2 bytes for 1 Chinese character. I submitted a patch before, but I am not sure if the p

Re: [Bf-committers] Support displaying of non-ASCII filename

2010-04-27 Thread Yaohua Xiong
Hi Drip Stone, > For displaying Chinese characters in Blender file browser on Windows, I > convert file name and path string to UTF-8 and later display them. When > opening files, I use old string, which usually needs 2 bytes for 1 Chinese > character. I submitted a patch before, but I am not sure