-
-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-add hack to avoid floating points errors
Fix #325 and shouldn't reopen #288. Now that fac5ee9 fixes line-cutting bug when drawing, we can use a much lower relative tolerance inspired from PEP 485 (1e-9 instead of 1e-3). Tests have been added with random values, as results highly depend on the version of Pango used and on hinting properties depending on the system used to launch the tests. They are probably longer than required, but they try hard to prevent #288 and #325 from coming back.
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters