diff options
author | Rob Haarsma <phaseIV@zonnet.nl> | 2003-05-11 21:44:05 +0400 |
---|---|---|
committer | Rob Haarsma <phaseIV@zonnet.nl> | 2003-05-11 21:44:05 +0400 |
commit | 2552f05b3148fc0b682691f681fd2bed10350559 (patch) | |
tree | e4514df50cf1883ad04d6f4d6be9bef172d9775a | |
parent | c74da8a1197d3d0618902f4d85e59d69ee4d20b5 (diff) |
modified to load the new .bfont.ttf correct
-rw-r--r-- | source/blender/src/language.c | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/source/blender/src/language.c b/source/blender/src/language.c index 89c25cbb207..da8e333798b 100644 --- a/source/blender/src/language.c +++ b/source/blender/src/language.c @@ -154,24 +154,22 @@ void start_interface_font(void) { int result = 0; /* hack to find out if we have saved language/font settings. - if not, set defaults and try Vera font (or else .bfont.tff) --phase */ + if not, set defaults and try .bfont.tff --phase */ - if(U.fontsize != 0) { + if(U.fontsize != 0) { // we have saved user settings + // try load the font from the font dir BLI_make_file_string("/", tstr, U.fontdir, U.fontname); - result = FTF_SetFont(tstr, U.fontsize); + + if(!result) { // else try loading font from current dir + result = FTF_SetFont(U.fontname, U.fontsize); + } } else { U.language= 0; U.fontsize= 11; U.encoding= 0; - sprintf(U.fontname, "Vera.ttf\0"); - - result = FTF_SetFont(U.fontname, U.fontsize); - } - - if(!result) { - U.fontsize= 12; sprintf(U.fontname, ".bfont.ttf\0"); + result = FTF_SetFont(U.fontname, U.fontsize); } |