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 /measureit
parentcf63c4fb3ac501b0f08af115111db72fee4a81c6 (diff)
Addons: fix dpi preference value for blf.size D5793
Diffstat (limited to 'measureit')
-rw-r--r--measureit/measureit_geometry.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/measureit/measureit_geometry.py b/measureit/measureit_geometry.py
index f1a09516..00d12bee 100644
--- a/measureit/measureit_geometry.py
+++ b/measureit/measureit_geometry.py
@@ -818,7 +818,7 @@ def draw_text(myobj, pos2d, display_text, rgba, fsize, align='L', text_rot=0.0):
x_pos, y_pos = pos2d
font_id = 0
ui_scale = bpy.context.preferences.system.ui_scale
- blf.size(font_id, round(fsize * ui_scale), bpy.context.preferences.system.dpi)
+ blf.size(font_id, round(fsize * ui_scale), 72)
# blf.size(font_id, fsize, dpi)
# height of one line
mwidth, mheight = blf.dimensions(font_id, "Tp") # uses high/low letters