On Thu, 29 Sep 2011 18:13:12 +0200
luigi scarso
On Thu, 29 Sep 2011 17:12:07 +0200 luigi scarso
wrote: On Thu, Sep 29, 2011 at 5:10 PM, john Culleton
wrote: These two fonts are in /usr/share/fonts/OTF. In that directory they are listed in fonts.dir. I want to use simplefonts to use Minion as the base font. I ran the various commands described in the Wiki page:
http://wiki.contextgarden.net/Fonts_in_LuaTeX and got the two fonts listed in the font database.
I put the following in my MKIV context file: ... \usemodule[simplefonts] % load the module \setmainfont[minionproregular] %
%\whitespace[line]
\usetypescript[serif,sans][hanging][pure] \setupalign[hanging] \setupbodyfont[minionproregular,14pt] ... Now I get a new error message: ------------------------- mtx-context.lua:675: attempt to call field 'locate_format' (a nil value)
Any suggestions?
which context version ? 2011.05.18 18:04
As delivered with TeXLive 2011. hm, quite old but possible right. Can you try 1)mkdir texmf-project/test 2)## copy Minion fonts onto texmf-project/test
On Thu, Sep 29, 2011 at 5:38 PM, john Culleton
wrote: 3) cd texmf-project/test 4) mtxrun --script fonts --reload 5) mtxrun --generate 6) context test.tex where test.tex is \usemodule[simplefonts] % load the module \setmainfont[minionproregular] %
%\whitespace[line]
\usetypescript[serif,sans][hanging][pure] \setupalign[hanging]
\starttext
\input knuth
\stoptext
in latest suite is ok.
Now that works! The error message went away. The program compiles a pdf file using the Minion Pro font. But the same test.tex program in the parent directory came up with the same error. So long as I run context etc. in that new directory, including my own document book.tex I get good results. When I move to another directory the world goes crazy again. I am ready for your next instruction, Sensei Luigi :<) -- John Culleton Wexford Press "Create Book Covers with Scribus" http://www.booklocker.com/books/4055.html