diff options
Diffstat (limited to 'systems/texlive/tlnet/tlpkg/TeXLive/TLUtils.pm')
-rw-r--r-- | systems/texlive/tlnet/tlpkg/TeXLive/TLUtils.pm | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/systems/texlive/tlnet/tlpkg/TeXLive/TLUtils.pm b/systems/texlive/tlnet/tlpkg/TeXLive/TLUtils.pm index 40028fe8c5..7324230170 100644 --- a/systems/texlive/tlnet/tlpkg/TeXLive/TLUtils.pm +++ b/systems/texlive/tlnet/tlpkg/TeXLive/TLUtils.pm @@ -1,4 +1,4 @@ -# $Id: TLUtils.pm 70774 2024-03-26 15:39:45Z karl $ +# $Id: TLUtils.pm 70794 2024-03-28 01:16:33Z karl $ # TeXLive::TLUtils.pm - the inevitable utilities for TeX Live. # Copyright 2007-2024 Norbert Preining, Reinhard Kotucha # This file is licensed under the GNU General Public License version 2 @@ -8,7 +8,7 @@ use strict; use warnings; package TeXLive::TLUtils; -my $svnrev = '$Revision: 70774 $'; +my $svnrev = '$Revision: 70794 $'; my $_modulerevision = ($svnrev =~ m/: ([0-9]+) /) ? $1 : "unknown"; sub module_revision { return $_modulerevision; } @@ -2290,16 +2290,24 @@ sub update_context_cache { # can be done about it. my $lmtx = "$bindir/luametatex$progext"; if (TeXLive::TLUtils::system_ok("$lmtx --version")) { - info("setting up ConTeXt cache: "); + info("setting up ConTeXt caches: "); $errcount += &$run_postinst_cmd("mtxrun --generate"); # # If mtxrun failed, don't bother trying more. if ($errcount == 0) { $errcount += &$run_postinst_cmd("context --luatex --generate"); # + # This is for finding fonts by font name (the --generate suffices + # for file name). Although ConTeXt does some automatic cache + # regeneration, Hans advises that this manual reload can help, and + # should be no harm. + # https://wiki.contextgarden.net/Use_the_fonts_you_want + # https://wiki.contextgarden.net/Mtxrun#base and #fonts + $errcount += &$run_postinst_cmd("mtxrun --script fonts --reload"); + # # If context succeeded too, try luajittex. Missing on some platforms. # Although we build luajittex normally, instead of importing the - # binary, testing for file existence should suffice, we may as + # binary, so testing for file existence should suffice, we may as # well test execution since it's just as easy. # if ($errcount == 0) { |