diff options
author | Wouter van Heyst <larstiq-bforge@larstiq.dyndns.org> | 2004-05-13 18:21:08 +0400 |
---|---|---|
committer | Wouter van Heyst <larstiq-bforge@larstiq.dyndns.org> | 2004-05-13 18:21:08 +0400 |
commit | 5d3629fdd8f41999c367e0827faf5465e10e29a2 (patch) | |
tree | f854556040bf322dca9c7dc9da37616d326c338f /source/blender/src/language.c | |
parent | 81679446ba8e5209d3497c59f943034b32e8a135 (diff) |
- Small improvement, check ~/.blender/.bfont.ttf instead of .blender/.bfont.ttf in cwd.
Diffstat (limited to 'source/blender/src/language.c')
-rw-r--r-- | source/blender/src/language.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/src/language.c b/source/blender/src/language.c index 16c3f1c82e1..c47c992818a 100644 --- a/source/blender/src/language.c +++ b/source/blender/src/language.c @@ -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 } |