Skip to content
This repository was archived by the owner on Feb 8, 2018. It is now read-only.
This repository was archived by the owner on Feb 8, 2018. It is now read-only.

Use reproducible fontconfig #1

Description

@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:

foo

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions