ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Michał Goliński" <golinski@amu.edu.pl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: External fonts handling
Date: Wed, 25 Nov 2015 12:52:22 +0100	[thread overview]
Message-ID: <6c85cce34f249e3781ba1a92d0f95819@amu.edu.pl> (raw)

Dear list,

I have a bunch of fonts in my home directory in the .fonts subdirectory. 
After an update, I used to run:

OSFONTDIR=$HOME/.fonts mtxrun --script fonts --reload

so that the font cache is regenerated. This workflow works in TeXLive, 
but recently fails in beta.

For the MWE:

\definefontfamily [mainface] [rm] [Minion Pro]
\setupbodyfont[mainface, 12pt]

\starttext

\input knuth

\stoptext

I get the following error:


$ context test.tex

resolvers       | trees | analyzing 'home:texmf'
mtx-context     | run 1: luatex 
--fmt="/home/michal/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en" 
--jobname="test" 
--lua="/home/michal/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui" 
--no-parse-first-line --c:currentrun=1 --c:fulljobname="./test.tex" 
--c:input="./test.tex" --c:kindofrun=1 --c:maxnofruns=9 "cont-yes.mkiv"
This is LuaTeX, Version beta-0.85.0 (TeX Live 2016/dev) (rev 5550)
  system commands enabled.

resolvers       > trees > analyzing 'home:texmf'

system          > callbacks > not registering frozen 'find_format_file'
open source     > 1 > 1 > 
/home/michal/context/tex/texmf-context/tex/context/base/cont-yes.mkiv

ConTeXt  ver: 2015.11.19 19:13 MKIV beta  fmt: 2015.11.25  int: 
english/english

system          > 'cont-new.mkiv' loaded
open source     > 2 > 2 > 
/home/michal/context/tex/texmf-context/tex/context/base/cont-new.mkiv
close source    > 2 > 2 > 
/home/michal/context/tex/texmf-context/tex/context/base/cont-new.mkiv
system          > files > jobname 'test', input './test', result 'test'
fonts           > latin modern fonts are not preloaded
languages       > language 'en' is active
open source     > 2 > 3 > /dev/shm/test.tex
fonts           > preloading modern-designsize (math)
fonts           > typescripts > unknown library 'modern-designsize'
fonts           > 'fallback modern-designsize mm 12pt' is loaded
fonts           > preloading modern-designsize (mono)
fonts           > 'fallback modern-designsize tt 12pt' is loaded
fonts           > defining > source file 'MinionPro-Regular.otf' is not 
found
open source     > 3 > 4 > 
/home/michal/context/tex/texmf-context/tex/context/sample/knuth.tex
close source    > 3 > 4 > 
/home/michal/context/tex/texmf-context/tex/context/sample/knuth.tex
backend         > xmp > using file 
'/home/michal/context/tex/texmf-context/tex/context/base/lpdf-pdx.xml'
pages           > flushing realpage 1, userpage 1
close source    > 2 > 4 > /dev/shm/test.tex
close source    > 1 > 4 > 
/home/michal/context/tex/texmf-context/tex/context/base/cont-yes.mkiv
Expected a string for (S), not: nil
Expected a string for (S), not: nil

!LuaTeX error: cannot find OpenType font file for reading ()
  ==> Fatal error occurred, no output PDF file produced!

mtx-context     | fatal error: return code: 1



But if I run context this way:

$ OSFONTDIR=$HOME/.fonts context test.tex

everything works.

Has font handling changed in some subtle way recently?

Best regards
Michal
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2015-11-25 11:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-25 11:52 Michał Goliński [this message]
2015-11-25 12:04 ` Jan U. Hasecke
2015-11-25 12:38 ` Jan U. Hasecke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6c85cce34f249e3781ba1a92d0f95819@amu.edu.pl \
    --to=golinski@amu.edu.pl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).