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 <[email protected]> wrote: > On Tue, Apr 27, 2010 at 7:53 AM, Yaohua Xiong <[email protected]> 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 >> [email protected] >> http://lists.blender.org/mailman/listinfo/bf-committers >> > _______________________________________________ > Bf-committers mailing list > [email protected] > http://lists.blender.org/mailman/listinfo/bf-committers > -- Yaohua Xiong Traffic and Transportation Engineering College, Tongji Univ. Cao An Road 4800#, Jia Ding District, Shanghai, China _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
