Index: source/blender/editors/space_info/textview.c =================================================================== --- source/blender/editors/space_info/textview.c (revision 45947) +++ source/blender/editors/space_info/textview.c (working copy) @@ -36,8 +36,8 @@ #include "BLI_math.h" #include "BLI_utildefines.h" +#include "UI_interface.h" - #include "BIF_gl.h" #include "BIF_glutil.h" @@ -47,7 +47,7 @@ static void console_font_begin(TextViewContext *sc) { - BLF_size(blf_mono_font, sc->lheight - 2, 72); + BLF_size(blf_mono_font, UI_UNIT_Y - 6, U.dpi); } typedef struct ConsoleDrawContext { Index: source/blender/editors/space_console/console_draw.c =================================================================== --- source/blender/editors/space_console/console_draw.c (revision 45947) +++ source/blender/editors/space_console/console_draw.c (working copy) @@ -51,6 +51,7 @@ #include "ED_types.h" #include "UI_resources.h" +#include "UI_interface.h" #include "console_intern.h" @@ -213,7 +214,7 @@ /* view */ tvc.sel_start = sc->sel_start; tvc.sel_end = sc->sel_end; - tvc.lheight = sc->lheight; + tvc.lheight = UI_UNIT_Y - 6; tvc.ymin = v2d->cur.ymin; tvc.ymax = v2d->cur.ymax; tvc.winx = ar->winx; Index: source/blender/editors/space_console/space_console.c =================================================================== --- source/blender/editors/space_console/space_console.c (revision 45947) +++ source/blender/editors/space_console/space_console.c (working copy) @@ -52,6 +52,7 @@ #include "WM_types.h" #include "UI_resources.h" +#include "UI_interface.h" #include "UI_view2d.h" #include "console_intern.h" // own include @@ -66,7 +67,7 @@ sconsole = MEM_callocN(sizeof(SpaceConsole), "initconsole"); sconsole->spacetype = SPACE_CONSOLE; - sconsole->lheight = 14; + sconsole->lheight = UI_UNIT_Y - 6; /* header */ ar = MEM_callocN(sizeof(ARegion), "header for console"); Index: source/blender/editors/interface/interface_style.c =================================================================== --- source/blender/editors/interface/interface_style.c (revision 45947) +++ source/blender/editors/interface/interface_style.c (working copy) @@ -378,7 +378,7 @@ if (blf_mono_font == -1) blf_mono_font = BLF_load_mem_unique("monospace", (unsigned char *)datatoc_bmonofont_ttf, datatoc_bmonofont_ttf_size); - BLF_size(blf_mono_font, 12, 72); + BLF_size(blf_mono_font, 12, U.dpi); /* second for rendering else we get threading problems */ if (blf_mono_font_render == -1)