Page MenuHome

BLF: Correctly Set Default Font Size
ClosedPublic

Authored by Harley Acheson (harley) on Sep 24 2022, 5:16 PM.

Details

Summary

Commit cd1631b17dd0 fails to scale the global_font_size by UI scale in
BLF_set_default. Generally used for simple text output like statistics.


For simple text output we can call BLF_set_default to initialize the default font with a default size. Unfortunately I forgot to scale this by UI scale. BLF_draw_default works fine; It is only if you call BLF_set_default followed by regular font draws.

In this capture by @Guido (Nurb2Kea) you can see both some informational text too small and statistics with incorrect alignment and spacing, when the UI scale is 2X:

Will commit without review as this is very recent own code.

Diff Detail

Repository
rB Blender

Event Timeline

Harley Acheson (harley) requested review of this revision.Sep 24 2022, 5:16 PM
Harley Acheson (harley) created this revision.
This revision was not accepted when it landed; it landed in state Needs Review.Sep 24 2022, 5:24 PM
This revision was automatically updated to reflect the committed changes.