Use reproducible fontconfig
Created by: aszlig
I'm trying to package this in order to automatically run the tests for Paperwork on Nix(OS) in a headless and sandboxed environment. However it seems that for pytestshot
in particular the font differs from what I get when running the tests.
When using this fontconfig:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<dir>/nix/store/8gn2b5vvlazg608cj1y5l4igp9rckmnq-dejavu-fonts-minimal-2.37</dir>
</fontconfig>
... the screenshot I get when running the tests is the following:
This obviously isn't the same as in the reference screenshot and thus the test_ref
test will fail.
So I guess the best way would be to actually force a fixed fontconfig, so that testing is less dependent on rendering settings like antialiasing or different fonts.
@jflesch: For starters it would actually be useful to know which config you've used for generating the reference screenshot.
Note that I've also tried adding more fonts like cantarell and various gs fonts to the fonconfig leading to the same result.