Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormeta-androcto <meta.androcto1@gmail.com>2019-09-23 04:56:54 +0300
committermeta-androcto <meta.androcto1@gmail.com>2019-09-23 04:56:54 +0300
commit0221dbb370d706c91c105e933be1048931c8fe95 (patch)
tree00cc60dc2c04a1822c8754e2d6bb94596928672c /object_scatter
parentcf63c4fb3ac501b0f08af115111db72fee4a81c6 (diff)
Addons: fix dpi preference value for blf.size D5793
Diffstat (limited to 'object_scatter')
-rw-r--r--object_scatter/operator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/object_scatter/operator.py b/object_scatter/operator.py
index 5294d173..742eec95 100644
--- a/object_scatter/operator.py
+++ b/object_scatter/operator.py
@@ -394,7 +394,7 @@ def draw_text(location, text, size=15, color=(1, 1, 1, 1)):
font_id = 0
ui_scale = bpy.context.preferences.system.ui_scale
blf.position(font_id, *location)
- blf.size(font_id, round(size * ui_scale), bpy.context.preferences.system.dpi)
+ blf.size(font_id, round(size * ui_scale), 72)
blf.draw(font_id, text)