When I run dvisvgm multiple times on the same DVI file, with --font-format set to anything other than svg, the resulting SVG files are different (not always, but at least about 10% of the time). This makes it inconvenient to have the SVG files checked into version control, or to run regression tests on the steps leading up to their creation.
The command is something like:
dvisvgm --page=1- --font-format=$format foo.dvi
where $format is one of ttf, woff, or woff2. The diffs are all in the @font-face lines, i.e. the actual base-64 encoding of the font.
Is it known where this non-determinism/randomness come from? Is there a way to avoid it (set a random seed or something)? It possibly has something to do with the time, as using faketime helps a bit.
When I run
dvisvgmmultiple times on the same DVI file, with--font-formatset to anything other thansvg, the resulting SVG files are different (not always, but at least about 10% of the time). This makes it inconvenient to have the SVG files checked into version control, or to run regression tests on the steps leading up to their creation.The command is something like:
where
$formatis one ofttf,woff, orwoff2. The diffs are all in the@font-facelines, i.e. the actual base-64 encoding of the font.Is it known where this non-determinism/randomness come from? Is there a way to avoid it (set a random seed or something)? It possibly has something to do with the time, as using
faketimehelps a bit.