nixpkgs/pkgs/data/fonts/junicode/tests.nix
Ivan Timokhin 2b9af27096 junicode: 2.204 -> 2.205
Changelog:
https://github.com/psb1558/Junicode-font/releases/tag/v2.205

Significant changes throughout TeX style files, including new style
file for VF font versions.  The latter seems to rely on system font
search a lot more than the existing one, requiring a lot more
patching.
2024-01-08 14:27:06 +03:00

36 lines
886 B
Nix

{ lib, runCommand, junicode, texliveBasic }:
let
texliveWithJunicode = texliveBasic.withPackages (p: [ p.xetex junicode ]);
texTest = { package, tex, fonttype, file }:
lib.attrsets.nameValuePair "${package}-${tex}-${fonttype}" (
runCommand "${package}-test-${tex}-${fonttype}.pdf"
{
nativeBuildInputs = [ texliveWithJunicode ];
inherit tex fonttype file;
} ''
substituteAll $file test.tex
HOME=$PWD $tex test.tex
cp test.pdf $out
'');
in
builtins.listToAttrs (
map
texTest
(lib.attrsets.cartesianProductOfSets {
tex = [ "xelatex" "lualatex" ];
fonttype = [ "ttf" "otf" ];
package = [ "junicode" ];
file = [ ./test.tex ];
})
++
[
(texTest {
package = "junicodevf";
fonttype = "ttf";
tex = "lualatex";
file = ./test-vf.tex;
})
]
)