[Bf-committers] UI: Allowing for font-DPI values lower than 72

Martin Voigt voigt.m at googlemail.com
Tue Feb 22 08:21:26 CET 2011


When setting the font-DPI in the user preferences, the change is
discarded at the next start of Blender when the value is below 72.
Since setting the DPI is (afaik) the only way to change the font size
of the interface, allowing values lower than 72 would be a good thing.
At the moment I'm doing it this way:


diff --recursive '--exclude=.*'
blender-svn/source/blender/editors/interface/interface_style.c
blender-git/source/blender/editors/interface/interface_style.c
289c289
<       CLAMP(U.dpi, 72, 240);
---
>       CLAMP(U.dpi, 60, 240);


I'm not sure this is the right way, but allowing for lower DPI values
should be an option.

bw,
Martin


More information about the Bf-committers mailing list