You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When running docfx.Snapshots.Tests tests on Windows environment.
Snapshot diffs are detected that are relating to generated PDF files.
Expected behavior docfx.Snapshots.Tests run successfully without diffs on Windows environment.
Context
OS: Windows
Additional context
PDF snapshot diffs are caused by following OS dependent behaviors.
OS dependent fonts differences (Embedded fonts are selected by specified font family)
OS specific rendering differences. (See https://github.com/UglyToad/PdfPig/issues/840)
I've tried to use Web Fonts (Noto Sans and Noto Sans Mono) to resolve issues.
But 2. OS specific rendering differences seems to be hard to resolve. (It cause diffs on line break location)
As a temporary workaround.
I'm using following git commands to ignore diffs.
Describe the bug
When running
docfx.Snapshots.Tests
tests on Windows environment.Snapshot diffs are detected that are relating to generated PDF files.
Expected behavior
docfx.Snapshots.Tests
run successfully without diffs on Windows environment.Context
Additional context
PDF snapshot diffs are caused by following OS dependent behaviors.
https://github.com/UglyToad/PdfPig/issues/840
)I've tried to use Web Fonts (
Noto Sans
andNoto Sans Mono
) to resolve issues.But
2. OS specific rendering differences
seems to be hard to resolve. (It cause diffs on line break location)As a temporary workaround.
I'm using following git commands to ignore diffs.
Note
When reset above settings.
It need to exec command with
--no-skip-worktree
.Skipped files can be found by using
git ls-files -v
command andS
flag.The text was updated successfully, but these errors were encountered: