This adds tests to test the PS backend in the regression test framework.
Since both PDF and PS are use the same renderer (in this case ghostscript) it's actually possible to use the PDF baseline images to check the PS output for most of the image comparison tests. The exception to this is when using a feature that Postscript doesn't support: alpha-blending. So, rather than adding a ton of new baseline images for PS, this will use the PDF ones when no EPS one is provided. This has the added benefit of automatically checking that the PDF and PS output is very close to identical, as it should be by design.
This also removes the mathfont tests for SVG and PDF since (a) they weren't testing anything backend-specific, (b) they took a significant portion of testing time and (c) the small differences between font rendering in PDF and PS were causing some false negatives when testing PS.
Ditto for the png_suite test.
Also fixes one minor font rendering bug in the PS backend uncovered by adding the regression tests.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds tests to test the PS backend in the regression test framework.
Since both PDF and PS are use the same renderer (in this case ghostscript) it's actually possible to use the PDF baseline images to check the PS output for most of the image comparison tests. The exception to this is when using a feature that Postscript doesn't support: alpha-blending. So, rather than adding a ton of new baseline images for PS, this will use the PDF ones when no EPS one is provided. This has the added benefit of automatically checking that the PDF and PS output is very close to identical, as it should be by design.
This also removes the mathfont tests for SVG and PDF since (a) they weren't testing anything backend-specific, (b) they took a significant portion of testing time and (c) the small differences between font rendering in PDF and PS were causing some false negatives when testing PS.
Ditto for the png_suite test.
Also fixes one minor font rendering bug in the PS backend uncovered by adding the regression tests.