summaryrefslogtreecommitdiff
path: root/Master/tlpkg/TeXLive/TLUtils.pm
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2024-03-28 01:16:33 +0000
committerKarl Berry <karl@freefriends.org>2024-03-28 01:16:33 +0000
commit17b2314e5ec01cbc5861700e8be77607af7bb57a (patch)
tree193be03fcee38451ee4fd0d277448e4c25de6185 /Master/tlpkg/TeXLive/TLUtils.pm
parent9cf0e673d8906397e50a9527f0bc3a89fd65c016 (diff)
(update_context_cache): also run mtxrun --script fonts --reload,
for finding fonts by font name. git-svn-id: svn://tug.org/texlive/trunk@70794 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/TeXLive/TLUtils.pm')
-rw-r--r--Master/tlpkg/TeXLive/TLUtils.pm12
1 files changed, 10 insertions, 2 deletions
diff --git a/Master/tlpkg/TeXLive/TLUtils.pm b/Master/tlpkg/TeXLive/TLUtils.pm
index cc5d4ec90a7..44a7861d57e 100644
--- a/Master/tlpkg/TeXLive/TLUtils.pm
+++ b/Master/tlpkg/TeXLive/TLUtils.pm
@@ -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) {