diff options
author | Ton Roosendaal <ton@blender.org> | 2003-11-14 18:49:26 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-11-14 18:49:26 +0300 |
commit | d8f860509835710187dd3d17e1fbc574b8d16295 (patch) | |
tree | 32921cf1e88bc247f5ac0f410715910c93104d72 /source/blender/src/language.c | |
parent | 4d1b1545f2e8da3070812b43936a7f44e9c332a0 (diff) |
- Bug fix: at osx, default AA font couldnt be written in .b.blend
(unless you manually install font)
- Bug fix: string for AA font was only 64 chars... made 256.
- Changed API for buttons aligning... it now detects automatic what rows
are, or collums, and aligns buttons. This makes call easier:
uiBlockBeginAlign(block);
... defBut....
uiBlockEndAlign(block);
Only works when you provide buttons in row order!
- made sure only 'rounded' theme uses this align stuff
- still work in progress.. I commit now because I leave to denmark for 2 days!
http://www.blender.org/bf/rt.jpg <- now also groups with rows+collums
Diffstat (limited to 'source/blender/src/language.c')
-rw-r--r-- | source/blender/src/language.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/language.c b/source/blender/src/language.c index a8918c3862f..183c0fd41c8 100644 --- a/source/blender/src/language.c +++ b/source/blender/src/language.c @@ -222,7 +222,9 @@ void start_interface_font(void) { strcat(tstr, ".bfont.ttf"); result = FTF_SetFont(tstr, U.fontsize); - sprintf(U.fontname, ".blender/.bfont.ttf"); + //sprintf(U.fontname, ".blender/.bfont.ttf"); + strncpy(U.fontname, tstr, 255); + #elif defined (WIN32) BLI_getInstallationDir(tstr); strcat(tstr, "/.blender/.bfont.ttf\0"); |