Skip to content

Commit 11c7b2f

Browse files
committed
fix wrap to pixels calculation for outlined ranges.
1 parent 644de5a commit 11c7b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_display_text/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def count_overlap(range1, range2):
111111
word_range = (word_start_idx, word_start_idx + len(word))
112112
for outline_range in outline_accent_ranges:
113113
overlap = count_overlap(word_range, (outline_range[0], outline_range[1]))
114-
wwidth += overlap * outline_range[2]
114+
wwidth += overlap * (outline_range[2] * 2)
115115

116116
char_index += len(word)
117117

0 commit comments

Comments
 (0)