object_scatter/operator: Use ui_scale + dpi : D5455

This commit is contained in:
Brendon Murphy 2019-08-20 11:19:06 +10:00
parent 2f23e77e11
commit 04580d6c73
1 changed files with 2 additions and 1 deletions

View File

@ -392,8 +392,9 @@ def create_line_strip_batch(coords):
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, size, 72)
blf.size(font_id, round(size * ui_scale), bpy.context.preferences.system.dpi)
blf.draw(font_id, text)