Skip to content

Give the caption golden's polygon and polyline a stroke colour - #107

Merged
bobsingor merged 1 commit into
embedpdf/mainfrom
embedpdf/fix/measure-caption-stroke
Nov 3, 2026
Merged

bobsingor merged 1 commit into
embedpdf/mainfrom
embedpdf/fix/measure-caption-stroke

Conversation

@bobsingor

Copy link
Copy Markdown
Contributor

The release on embedpdf/main (8074892, run 41716790696) failed its Linux source tests on one test, EPDFMeasureEmbedderTest.CaptionAppearanceGolden, with 1,322 pixels different.

The actual and expected images in the CI log differ only in the bottom row: the polygon and polyline lost their black outlines. The test never gives those two shapes a /C, and since #104 (no stroke) a shape without one draws no outline, as Acrobat does. #104 set a colour in the measurement tests' line helper, but this test builds its shapes itself. The dimension lines are pixel-identical, so #105 and #106 aren't involved.

This change gives the polygon and polyline a black stroke, so they draw as before and measure_captions.png stays as it is. It changes the test only.

On Linux in Docker, the release job's suites now pass in full: unit 1,327, embedder 1,777. On macOS this test already failed before #104; measure_captions_mac.png is out of date for another reason.

EPDFMeasureEmbedderTest.CaptionAppearanceGolden failed the release's Linux source tests on main (8074892, run 41716790696): 1,322 pixels differ. The CI's actual and expected images differ only in the bottom row, where the polygon and polyline lost their black outlines. The test never gives those two a /C, and since #104 (no stroke) a shape without one draws no outline, as Acrobat does. #104 already set a colour in the measurement tests' line helper; this test builds its shapes itself.

Now they are black, so the golden draws as before and measure_captions.png is unchanged. On Linux in Docker the release job's suites now pass in full: unit 1,327, embedder 1,777. On macOS this test already failed before #104: measure_captions_mac.png is stale for another reason.
@bobsingor
bobsingor merged commit 922d776 into embedpdf/main Nov 3, 2026
1 check passed
@bobsingor
bobsingor deleted the embedpdf/fix/measure-caption-stroke branch November 3, 2026 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant