![](https://secure.gravatar.com/avatar/386a116d129cdc597f2bb6210bbaff7a.jpg?s=120&d=mm&r=g)
29 Sep
2011
29 Sep
'11
11:54 a.m.
On Thu, Sep 29, 2011 at 6:41 PM, john Culletonwrote: > On Thu, 29 Sep 2011 18:13:12 +0200 > luigi scarso wrote: > >> On Thu, Sep 29, 2011 at 5:38 PM, john Culleton >> wrote: >> > 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 >> 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 :<) :-) not so soon -- it's dinner time here anyway --- apart the notes from wolfgang, and assuming the suite aka standalone aka minimals installation you can 1) copy the minion font in tex/texmf/fonts/opentype/adobe/minion 2) mtxrun --script fonts --reload 3) mtxrun --generate 4) try context test.tex in a folder without the fonts, just to check that it's ok The location can vary, but I like this one ; as Wolfgang said, test.tex is a mix of mkiv and mkii and you should use \setmainfont[minionpro] instead of \setmainfont[minionproregular] % and \definefontfeature[default][default][protrusion=quality] instead of \usetypescript[serif,sans][hanging][pure] -- luigi