- Small improvement, check ~/.blender/.bfont.ttf instead of .blender/.bfont.ttf in cwd.

This commit is contained in:
Wouter van Heyst 2004-05-13 14:21:08 +00:00
parent 81679446ba
commit 5d3629fdd8

@ -250,9 +250,11 @@ void start_interface_font(void)
sprintf(U.fontname, "/.bfont.ttf\0");
#else
sprintf(U.fontname, ".blender/.bfont.ttf\0");
strcpy(tstr, BLI_gethome());
strcat(tstr, "/.blender/.bfont.ttf");
result = FTF_SetFont(tstr, U.fontsize);
result = FTF_SetFont(U.fontname, U.fontsize);
strncpy(U.fontname, tstr, 255);
#endif
}