Skip to content

Commit

Permalink
Fix OTB test on Fedora
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
liZe committed Jul 13, 2022
1 parent c4bf165 commit 91a2474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/draw/test_text.py
Original file line number Diff line number Diff line change
Expand Up @@ -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''')

0 comments on commit 91a2474

Please sign in to comment.