Fix the worst of software italic

This commit is contained in:
mcDandy
2026-06-11 12:12:03 +02:00
parent 228f2f414b
commit 25d0a3ca8a
+1 -1
View File
@@ -2447,7 +2447,7 @@ class UnifiedMathVisitor(MathExprVisitor):
# --- Software Italic (After Text Rendering) ---
if synthetic_italic:
img = img.transform(img.size, Image.Transform.AFFINE, (1, 0.25, 0, 0, 1, 0))
img = img.transform(img.size, Image.Transform.AFFINE, (1, 0.25, -0.25*text_h, 0, 1, 0))
# --- Rotate if requested ---
if angle != 0.0: