Skip to content

Commit

Permalink
Closes #4247
Browse files Browse the repository at this point in the history
  • Loading branch information
Durman committed Jul 27, 2021
1 parent 71e8c5c commit 2409d84
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ui/bgl_callback_nodeview.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,13 @@ def _draw_text_handler(tree_id, node_id, text: str, color=(1, 1, 1, 1), scale=1.
else:
(x, y), z = text_coordinates, 0

# https://github.com/nortikin/sverchok/issues/4247
ui_scale = bpy.context.preferences.system.ui_scale
x, y = x * ui_scale, y * ui_scale

# todo add scale from the preferences
text_height = int(15 * scale)
line_height = int(18 * scale)
text_height = int(15 * scale * ui_scale)
line_height = int(18 * scale * ui_scale)
font_id = 0
dpi = 72

Expand Down

0 comments on commit 2409d84

Please sign in to comment.