From 91a2474400103a63d931e4fcf51b3b516bb7b989 Mon Sep 17 00:00:00 2001
From: Guillaume Ayoub <guillaume@courtbouillon.org>
Date: Wed, 13 Jul 2022 10:23:57 +0200
Subject: [PATCH] Fix OTB test on Fedora
The metrics and floats roundings seems to be slightly different on different
platforms. Using a lower line-height value should fix the problem everywhere.
Fix #1677.
---
tests/draw/test_text.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/draw/test_text.py b/tests/draw/test_text.py
index b008b15f3..2df85ddb5 100644
--- a/tests/draw/test_text.py
+++ b/tests/draw/test_text.py
@@ -845,7 +845,7 @@ def test_otb_font(assert_pixels):
color: red;
font-family: weasyprint-otb;
font-size: 4px;
- line-height: 1;
+ line-height: 0.8;
}
</style>
AaA''')