diff options
author | Simon Clitherow <aphex@nildram.co.uk> | 2006-06-19 23:53:27 +0400 |
---|---|---|
committer | Simon Clitherow <aphex@nildram.co.uk> | 2006-06-19 23:53:27 +0400 |
commit | 77506aa1411fdf273abac41a0bc51dc56d0a5386 (patch) | |
tree | 1dcdaf8ad3512788dadc6c4e8f8828fb162f72a2 /source/blender/src/language.c | |
parent | e384f4d6f683ae2c232714ca74bdc053b4b421eb (diff) |
Fix #4353
Fixed a case where loading an invalid font crashed blender.
Now displays a message advising "invalid font selection" and
reverts to default 'built-in' international font.
Credits to Elubie for pointing out the problem function!
Diffstat (limited to 'source/blender/src/language.c')
-rw-r--r-- | source/blender/src/language.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/src/language.c b/source/blender/src/language.c index 333248f8623..6f5f89845f1 100644 --- a/source/blender/src/language.c +++ b/source/blender/src/language.c @@ -228,7 +228,9 @@ void set_interface_font(char *str) } else { U.fontname[0]= 0; + FTF_SetFont(datatoc_bfont_ttf, datatoc_bfont_ttf_size, U.fontsize); G.ui_international = TRUE; // this case will switch to standard font + okee("Invalid font selection - reverting to built-in font."); } allqueue(REDRAWALL, 0); } |