From ebefb99f7c4699d5f913388c0dc0cb372c08e724 Mon Sep 17 00:00:00 2001 From: jackyliu16 <18922251299@163.com> Date: Mon, 1 Apr 2024 21:25:21 +0800 Subject: [PATCH] add external fonts support --- lib/mkLatexPdfDocument.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/mkLatexPdfDocument.nix b/lib/mkLatexPdfDocument.nix index 2a71d04..6a1f60d 100644 --- a/lib/mkLatexPdfDocument.nix +++ b/lib/mkLatexPdfDocument.nix @@ -65,6 +65,10 @@ in ]); phases = args.phases or ["unpackPhase" "buildPhase" "installPhase"]; + FONTCONFIG_FILE = pkgs.makeFontsConf { + fontDirectories = + args.fonts or []; + }; buildPhase = args.buildPhase