summaryrefslogtreecommitdiff
path: root/systems/texlive/tlnet/tlpkg/TeXLive
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-03-30 03:03:36 +0000
committerNorbert Preining <norbert@preining.info>2024-03-30 03:03:36 +0000
commit16a9aadc4ae32ef5d7f20d62a3606b05e20f3405 (patch)
tree4cdbef1301bfdfe766434e49385bd2d251a7827e /systems/texlive/tlnet/tlpkg/TeXLive
parent23724df30adf3c6356ee7877833b8096987c643f (diff)
CTAN sync 202403300303
Diffstat (limited to 'systems/texlive/tlnet/tlpkg/TeXLive')
-rw-r--r--systems/texlive/tlnet/tlpkg/TeXLive/TLUtils.pm16
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) {