3 Commits
Author SHA1 Message Date
LEv145 6c93712961 v 2.5.1
Add support `\n` for column texts
2024-02-23 01:09:19 +02:00
LEv145 9591638263 Merge pull request #9 from kenjiqq/main
Fix padding calculation for column annotations with newlines
2024-02-23 01:04:18 +02:00
kenjiqq bb195b17e2 fix padding calculation for column annotations with newlines 2024-02-18 15:17:09 +01:00
+1 -1
View File
@@ -109,7 +109,7 @@ def _create_grid_annotation(
+ font.getlength(WIDEST_LETTER)*2
)
if column_texts:
top_padding = int(font.size * 2)
top_padding = max(elem.count("\n") for elem in column_texts) * int(font.size) + int(font.size * 2)
image = Image.new(
"RGB",