[Bf-committers] how to make python script contain and display utf-8 characters in blender?

明覺 shi.minjue at gmail.com
Thu Apr 16 05:47:20 CEST 2009


2009/4/14 joe <joeedh at gmail.com>:
> I don't believe blender's text editor can display chinese fonts
> correctly.  Doing so would require a more advanced font rendering
> library then we're using, and major changes in the code.  I'd suggest
> using an external text editor to code external modules, that you can
> call with a simple script in blender (e.g. make a module called Foo,
> and do import Foo in the blender text editor to import it).  You may
> want to read up on the PYTHONPATH variable for more information on how
> to properly do this though.
Thanks for the advice, I can use external text editor to edit python
script, the problem is after I press alt+p to exe the script, I hope
the chinese characters can display at there please, such as a
description of a input field, but i found that the user interface
cannot display chinese characters, maybe it's the same reason as in
text editor?  I believe blender should provide this support in the
future.

> Joe
>
> 2009/4/13 明覺 <shi.minjue at gmail.com>:
>> On Tue, Apr 14, 2009 at 10:48 AM, Roger Wickes <rogerwickes at yahoo.com> wrote:
>>> Blender can support chinese fonts and the simplified chinese labels. see the
>>> User Preferences, Language tab. Enable International, and select your font
>>> and language.
>> I tried to select a chinese font in the language & font section, but
>> after I select a chinese fonts, it doesn't take effect, and a error
>> message "could not change language to en_US nor en_US.UTF-8" output to
>> the console, how could i solve it? thanks
>>
>>
>>> ----------------
>>> Sent by Roger Wickes for intended recipient. If you are not the intended
>>> recipient, please delete this message and contact Mr. Wickes immediately.
>>>
>>> ________________________________
>>> From: 明覺 <shi.minjue at gmail.com>
>>> To: bf-blender developers <bf-committers at blender.org>
>>> Sent: Monday, April 13, 2009 9:15:12 PM
>>> Subject: [Bf-committers] how to make python script contain and display utf-8
>>> characters in blender?
>>>
>>> Greetings!
>>>
>>> I'm working on my first python script in blender. I'm a chinese, and
>>> the default encoding of my system(debian linux) is utf-8, so I hope I
>>> can use utf-8 encoding in both python and blender. I have added the
>>> line into python:
>>> ---------------
>>> # coding: utf-8
>>> ------------
>>> and the python file can contain chinese characters already, but the
>>> problem is blender cannot display chinese fonts, how could i solve it?
>>> thanks.
>>>
>>> Minjue(明覺)
>>>
>>> --
>>> My platform is Debian-sid gnome mozilla eclipse monodevelop blender.
>>> _______________________________________________
>>> Bf-committers mailing list
>>> Bf-committers at blender.org
>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>>
>>>
>>> _______________________________________________
>>> Bf-committers mailing list
>>> Bf-committers at blender.org
>>> http://lists.blender.org/mailman/listinfo/bf-committers
>>>
>>>
>>
>>
>>
>> --
>> My platform is debian-sid gnome mozilla eclipse monodevelop blender.
>> _______________________________________________
>> Bf-committers mailing list
>> Bf-committers at blender.org
>> http://lists.blender.org/mailman/listinfo/bf-committers
>>
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
My platform is debian-sid gnome mozilla eclipse monodevelop blender.


More information about the Bf-committers mailing list