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:
authorAndrea Weikert <elubie@gmx.net>2010-11-07 21:01:32 +0300
committerAndrea Weikert <elubie@gmx.net>2010-11-07 21:01:32 +0300
commit4741dd26d3d76dd1798445eb9865585d18261d81 (patch)
treedd91633a990d45019e68863153c174d31d9533e6 /source/blender/editors/space_file
parenta9f96d1adcb7922ffa1f4fa2cabd90c15769b1f0 (diff)
Enabled kerning for the default UI font for the places that are using UI_DrawString still and for filebrowser.
Makes text more readable :)
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r--source/blender/editors/space_file/file_draw.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c
index bf1beac92fe..719c29c3d3c 100644
--- a/source/blender/editors/space_file/file_draw.c
+++ b/source/blender/editors/space_file/file_draw.c
@@ -306,9 +306,14 @@ static void file_draw_string(int sx, int sy, const char* string, float width, in
x = (float)(sx);
y = (float)(sy-height);
+ if (style->widget.kerning == 1)
+ BLF_enable(style->widget.uifont_id, BLF_KERNING_DEFAULT);
+
uiStyleFontSet(&style->widget);
BLF_position(style->widget.uifont_id, x, y, 0);
BLF_draw(style->widget.uifont_id, fname);
+ if (style->widget.kerning == 1)
+ BLF_disable(style->widget.uifont_id, BLF_KERNING_DEFAULT);
}
void file_calc_previews(const bContext *C, ARegion *ar)