From 72933ebe96a02e96c9740e33d0a3e44d5b6365f1 Mon Sep 17 00:00:00 2001 From: Harley Acheson Date: Sat, 24 Sep 2022 08:23:36 -0700 Subject: BLF: Correctly Set Default Font Size Commit cd1631b17dd0 fails to scale the global_font_size by UI scale in BLF_set_default. Generally used for simple text output like statistics. See D16053 for more details. Differential Revision: https://developer.blender.org/D16053 Own Code --- source/blender/blenfont/intern/blf_default.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenfont/intern/blf_default.c b/source/blender/blenfont/intern/blf_default.c index a521d65fe30..738683284e3 100644 --- a/source/blender/blenfont/intern/blf_default.c +++ b/source/blender/blenfont/intern/blf_default.c @@ -45,7 +45,7 @@ int BLF_set_default(void) { ASSERT_DEFAULT_SET; - BLF_size(global_font_default, global_font_size); + BLF_size(global_font_default, global_font_size * U.dpi_fac); return global_font_default; } -- cgit v1.2.3