Skip to content
Snippets Groups Projects
Commit 2f23e77e authored by meta-androcto's avatar meta-androcto
Browse files

measureit_geometry: Use ui_scale + dpi : D5455

parent b37f6982
No related branches found
No related tags found
No related merge requests found
......@@ -810,7 +810,8 @@ def draw_text(myobj, pos2d, display_text, rgba, fsize, align='L', text_rot=0.0):
gap = 12
x_pos, y_pos = pos2d
font_id = 0
blf.size(font_id, fsize, 72)
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, fsize, dpi)
# height of one line
mwidth, mheight = blf.dimensions(font_id, "Tp") # uses high/low letters
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment