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

Diego B bdiego at gmail.com
Tue Apr 27 13:00:51 CEST 2010


On Tue, Apr 27, 2010 at 7:53 AM, Yaohua Xiong <xiongyaohua at gmail.com> 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 there a way to change the font through a simple hack? After all, a
> generic preference UI is not needed for test purpose.
>

Yep, source/blender/editors/interface/interface_style.c and search for the
line
  BLF_load_mem("default", ...); (289L)

and change with

 BLF_load("PATH_TO_FONT");

That will be change all the font on blender. Is not really a good thing,
because the default font of blender
always need to be the internal one, but for what you want test is fine I
think.


> Best regards,
> Yaohua Xiong
>
> --
> Yaohua Xiong
>
> Traffic and Transportation Engineering College, Tongji Univ.
> Cao An Road 4800#, Jia Ding District, Shanghai,  China
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>


More information about the Bf-committers mailing list