Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
brimoor committed Jan 2, 2024
1 parent f192d7c commit 399af95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eta/core/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1912,11 +1912,11 @@ def _parse_hex_color(h):
return rgb


def _get_text_size(font, string):
def _get_text_size(font, text_str):
try:
_, _, w, h = font.getbbox(string)
_, _, w, h = font.getbbox(text_str)
except AttributeError:
w, h = font.getsize(string) # Pillow<8
w, h = font.getsize(text_str) # Pillow<8

return w, h

Expand Down

0 comments on commit 399af95

Please sign in to comment.