ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* External fonts handling
@ 2015-11-25 11:52 Michał Goliński
  2015-11-25 12:04 ` Jan U. Hasecke
  2015-11-25 12:38 ` Jan U. Hasecke
  0 siblings, 2 replies; 3+ messages in thread
From: Michał Goliński @ 2015-11-25 11:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: External fonts handling
  2015-11-25 11:52 External fonts handling Michał Goliński
@ 2015-11-25 12:04 ` Jan U. Hasecke
  2015-11-25 12:38 ` Jan U. Hasecke
  1 sibling, 0 replies; 3+ messages in thread
From: Jan U. Hasecke @ 2015-11-25 12:04 UTC (permalink / raw)
  To: ntg-context

Am 25.11.2015 um 12:52 schrieb Michał Goliński:
> 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.

I've got a similar problem with EB Garamond installed in
/usr/share/fonts/opentype/ebgaramond

I tried all hints on contextgarden but could not get it to work.

juh
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: External fonts handling
  2015-11-25 11:52 External fonts handling Michał Goliński
  2015-11-25 12:04 ` Jan U. Hasecke
@ 2015-11-25 12:38 ` Jan U. Hasecke
  1 sibling, 0 replies; 3+ messages in thread
From: Jan U. Hasecke @ 2015-11-25 12:38 UTC (permalink / raw)
  To: ntg-context

In my previous message I wrote that I had the same problem.

I solved it by these steps:

in .bashrc:

export
OSFONTDIR="/usr/local/share/fonts;/usr/share/fonts;$HOME/.fonts;$HOME/.local/share/fonts"


cd $HOME/context

rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh .

./first-setup.sh --modules=all


Note: In contextgarden the last command reads:

sh ./first-setup.sh --modules=all

I guess that my font directory was never read by the install script
because I use bash not sh.

So make sure that your font directories are well exported whatever shell
you use. I am not an expert in this.


A second note:

Ubuntu installs new fonts into the directory

$HOME/.local/share/fonts

Maybe such a hint somewhere in the garden would help.


Ciao!
juh

-- 
Das ZEN von Pandoc
Bücher und E-Books einfach und professionell produzieren
http://www.amazon.de/Das-ZEN-von-Pandoc-professionell/dp/1505218799/
Paperback (232 Seiten) und E-Book
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-25 12:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-25 11:52 External fonts handling Michał Goliński
2015-11-25 12:04 ` Jan U. Hasecke
2015-11-25 12:38 ` Jan U. Hasecke

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).