mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
PyAPI: remove deprecated blf.size() dpi argument
Scripts can be updated by scaling the font size, e.g. blf.size(id, size, dpi) -> blf.size(id, size * (dpi / 72.0))
This commit is contained in:
parent
7fbac7e235
commit
9357f7b606
3 changed files with 4 additions and 9 deletions
|
|
@ -37,7 +37,7 @@ def draw_callback_px(self, context):
|
|||
# BLF drawing routine
|
||||
font_id = font_info["font_id"]
|
||||
blf.position(font_id, 2, 80, 0)
|
||||
blf.size(font_id, 50)
|
||||
blf.size(font_id, 50.0)
|
||||
blf.draw(font_id, "Hello World")
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue