Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWouter van Heyst <larstiq-bforge@larstiq.dyndns.org>2004-05-13 18:21:08 +0400
committerWouter van Heyst <larstiq-bforge@larstiq.dyndns.org>2004-05-13 18:21:08 +0400
commit5d3629fdd8f41999c367e0827faf5465e10e29a2 (patch)
treef854556040bf322dca9c7dc9da37616d326c338f
parent81679446ba8e5209d3497c59f943034b32e8a135 (diff)
- Small improvement, check ~/.blender/.bfont.ttf instead of .blender/.bfont.ttf in cwd.
-rw-r--r--source/blender/src/language.c6
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
}