>From what I can tell, the bold font is not found if all of the following
are true:
1. using the Palatino typescript
2. setting the body font to 10.5pt (but 11pt or 12pt works fine)
3. using MkIV
4. using components (project structure)
Here's the minimal example (mytest.tex):
============================================================
\startmode[ascomponent]
\startcomponent mytest
\stopmode
\usetypescript[palatino][ec]
\setupbodyfont[palatino,10.5pt]
\startmode[standalone]
\starttext
\stopmode
{\bold hello}
\startmode[standalone]
\stoptext
\stopmode
\startmode[ascomponent]
\stopcomponent
\stopmode
============================================================
Compile the two variants with:
context --mode=ascomponent --result=mytest-ascomponent.pdf mytest.tex
context --mode=standalone --result=mytest-standalone.pdf mytest.tex
mytest-standalone.pdf is fine (the "hello" is in bold), but
mytest-ascomponent.pdf has the "hello" in roman.
The particular roman font in mytest-ascomponent.pdf is also funny:
$ pdffonts mytest-ascomponent.pdf
name type emb sub uni object ID
------------------------------------ ----------------- --- --- --- ---------
TZNKGE+TeXGyrePagellaMath-Regular CID Type 0C yes yes yes 18 0
Why is it the math font?
(A slightly more complex example, using \project to include a project
file, which includes an environment file that asks for palatino,
produced the same problem. But the version above needs just one file,
mytest.tex, so for simplicity I am describing the problem using it.)
What I think is happening is that, when running as a component, the
typescript loading happens too late (after the equivalent of
"\starttext"), and not everything gets set up properly. In support of
that idea, if I shift the two environment lines ("\usetypescript ...")
to just before the "{\bold hello}"---thus, after the "\starttext"---then
the standalone version gets the same problem ("hello" in roman).
What puzzles me is that this problem shows up only with 10.5pt and using
palatino. If I just use 10.5pt (i.e. w/ modern), then there's no
problem. Or 11pt in Palatino is fine. There's also no problem using MkII.
I tested with the context in vanilla TL2013 and in Norbert's latest
Debian packages--the problem happens in both.
I'm attaching the two log files.
-Sanjoy
(/usr/local/texlive/2013/texmf-dist/tex/context/base/cont-yes.mkiv
ConTeXt ver: 2013.05.28 00:36 MKIV current fmt: 2013.7.2 int: english/english
system > 'cont-new.mkiv' loaded
(/usr/local/texlive/2013/texmf-dist/tex/context/base/cont-new.mkiv)
system > files > jobname 'mytest', input './mytest', result 'mytest-ascomponent.pdf'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
(/home/sanjoy/sfse/test/mytest.tex{/usr/local/texlive/2013/texmf-dist/fonts/map/pdftex/context/mkiv-base.map}
fonts > preloading latin modern fonts (second stage)
fonts > typescripts > unknown library 'loc'
{/usr/local/texlive/2013/texmf-dist/fonts/map/dvips/lm/lm-math.map}{/usr/local/texlive/2013/texmf-dist/fonts/map/dvips/lm/lm-rm.map}
fonts > 'fallback modern rm 12pt' is loaded
fonts > bodyfont '10.5pt' is defined (can better be done global)
fonts > bodyfont '12.6pt' is defined (can better be done global)
fonts > bodyfont '8.4pt' is defined (can better be done global)
(/usr/local/texlive/2013/texmf-dist/tex/context/base/type-imp-texgyre.mkiv)
backend > xmp > using file '/usr/local/texlive/2013/texmf-dist/tex/context/base/lpdf-pdx.xml'
pages > flushing realpage 1, userpage 1
) )</usr/local/texlive/2013/texmf-dist/fonts/opentype/public/tex-gyre-math/texgyrepagella-math.otf>
system > files > start used files
used files > 1: filename=cont-yes.mkiv filetype=tex foundname=/usr/local/texlive/2013/texmf-dist/tex/context/base/cont-yes.mkiv usedmethod=otherwise
used files > 2: filename=cont-new.mkiv filetype=tex foundname=/usr/local/texlive/2013/texmf-dist/tex/context/base/cont-new.mkiv usedmethod=otherwise
used files > 3: filename=lang-us.lua filetype=lua foundname=/usr/local/texlive/2013/texmf-dist/tex/context/patterns/lang-us.lua usedmethod=otherwise
used files > 4: filename=/home/sanjoy/sfse/test/mytest.tex foundname=/home/sanjoy/sfse/test/mytest.tex usedmethod=direct
used files > 5: filename=mkiv-base.map filetype=map format=map foundname=/usr/local/texlive/2013/texmf-dist/fonts/map/pdftex/context/mkiv-base.map usedmethod=database
used files > 6: filename=lm.lfg filetype=tex foundname=/usr/local/texlive/2013/texmf-dist/tex/context/fonts/lm.lfg usedmethod=otherwise
used files > 7: filename=lm-math.lfg filetype=tex foundname=/usr/local/texlive/2013/texmf-dist/tex/context/fonts/lm-math.lfg usedmethod=otherwise
used files > 8: filename=lm-math.map filetype=map format=map foundname=/usr/local/texlive/2013/texmf-dist/fonts/map/dvips/lm/lm-math.map usedmethod=database
used files > 9: filename=lm-rm.map filetype=map format=map foundname=/usr/local/texlive/2013/texmf-dist/fonts/map/dvips/lm/lm-rm.map usedmethod=database
used files > 10: filename=lmroman12-regular filetype=otf format=otf foundname=/usr/local/texlive/2013/texmf-dist/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
used files > 11: filename=latinmodern-math.otf filetype=opentypefonts foundname=/usr/local/texlive/2013/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used files > 12: filename=latinmodern-math.otf filetype=otf format=otf foundname=/usr/local/texlive/2013/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used files > 13: filename=type-imp-texgyre.mkiv filetype=tex foundname=/usr/local/texlive/2013/texmf-dist/tex/context/base/type-imp-texgyre.mkiv usedmethod=otherwise
used files > 14: filename=texgyre.lfg filetype=tex foundname=/usr/local/texlive/2013/texmf-dist/tex/context/fonts/texgyre.lfg usedmethod=otherwise
used files > 15: filename=texgyrepagella-math.otf filetype=opentypefonts foundname=/usr/local/texlive/2013/texmf-dist/fonts/opentype/public/tex-gyre-math/texgyrepagella-math.otf usedmethod=database
used files > 16: filename=texgyrepagella-math.otf filetype=otf format=otf foundname=/usr/local/texlive/2013/texmf-dist/fonts/opentype/public/tex-gyre-math/texgyrepagella-math.otf usedmethod=database
used files > 17: filename=lpdf-pdx.xml filetype=tex foundname=/usr/local/texlive/2013/texmf-dist/tex/context/base/lpdf-pdx.xml usedmethod=otherwise
system > files > stop used files
system > structure > start used structure
used structure > text: mytest
used structure > component: mytest
system > structure > stop used structure
system > files > start used files
used file > 1: filename=cont-yes.mkiv filetype=tex foundname=/usr/local/texlive/2013/texmf-dist/tex/context/base/cont-yes.mkiv usedmethod=otherwise
used file > 2: filename=cont-new.mkiv filetype=tex foundname=/usr/local/texlive/2013/texmf-dist/tex/context/base/cont-new.mkiv usedmethod=otherwise
used file > 3: filename=lang-us.lua filetype=lua foundname=/usr/local/texlive/2013/texmf-dist/tex/context/patterns/lang-us.lua usedmethod=otherwise
used file > 4: filename=/home/sanjoy/sfse/test/mytest.tex foundname=/home/sanjoy/sfse/test/mytest.tex usedmethod=direct
used file > 5: filename=mkiv-base.map filetype=map format=map foundname=/usr/local/texlive/2013/texmf-dist/fonts/map/pdftex/context/mkiv-base.map usedmethod=database
used file > 6: filename=lm.lfg filetype=tex foundname=/usr/local/texlive/2013/texmf-dist/tex/context/fonts/lm.lfg usedmethod=otherwise
used file > 7: filename=lm-math.lfg filetype=tex foundname=/usr/local/texlive/2013/texmf-dist/tex/context/fonts/lm-math.lfg usedmethod=otherwise
used file > 8: filename=lm-math.map filetype=map format=map foundname=/usr/local/texlive/2013/texmf-dist/fonts/map/dvips/lm/lm-math.map usedmethod=database
used file > 9: filename=lm-rm.map filetype=map format=map foundname=/usr/local/texlive/2013/texmf-dist/fonts/map/dvips/lm/lm-rm.map usedmethod=database
used file > 10: filename=lmroman12-regular filetype=otf format=otf foundname=/usr/local/texlive/2013/texmf-dist/fonts/opentype/public/lm/lmroman12-regular.otf usedmethod=database
used file > 11: filename=latinmodern-math.otf filetype=opentypefonts foundname=/usr/local/texlive/2013/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file > 12: filename=latinmodern-math.otf filetype=otf format=otf foundname=/usr/local/texlive/2013/texmf-dist/fonts/opentype/public/lm-math/latinmodern-math.otf usedmethod=database
used file > 13: filename=type-imp-texgyre.mkiv filetype=tex foundname=/usr/local/texlive/2013/texmf-dist/tex/context/base/type-imp-texgyre.mkiv usedmethod=otherwise
used file > 14: filename=texgyre.lfg filetype=tex foundname=/usr/local/texlive/2013/texmf-dist/tex/context/fonts/texgyre.lfg usedmethod=otherwise
used file > 15: filename=texgyrepagella-math.otf filetype=opentypefonts foundname=/usr/local/texlive/2013/texmf-dist/fonts/opentype/public/tex-gyre-math/texgyrepagella-math.otf usedmethod=database
used file > 16: filename=texgyrepagella-math.otf filetype=otf format=otf foundname=/usr/local/texlive/2013/texmf-dist/fonts/opentype/public/tex-gyre-math/texgyrepagella-math.otf usedmethod=database
used file > 17: filename=lpdf-pdx.xml filetype=tex foundname=/usr/local/texlive/2013/texmf-dist/tex/context/base/lpdf-pdx.xml usedmethod=otherwise
system > files > stop used files
system > options > start commandline options
used option > currentrun="1"
used option > fulljobname="./mytest.tex"
used option > input="./mytest.tex"
used option > kindofrun="1"
used option > maxnofruns="8"
used option > mode="ascomponent"
used option > no-parse-first-line="true"
used option > result="mytest-ascomponent.pdf"
system > options > stop commandline options
system > options > start commandline files
used file > 1: ./mytest.tex
system > options > stop commandline files
mkiv lua stats > used config file: selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.lua
mkiv lua stats > used cache path: readable+writable: '/usr/local/texlive/2013/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9'
mkiv lua stats > resource resolver: loadtime 0.154 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 17 found files, scanned paths: <none>
mkiv lua stats > stored bytecode data: 329 modules (0.350 sec), 69 tables (0.010 sec), 398 chunks (0.360 sec)
mkiv lua stats > cleaned up reserved nodes: 41 nodes, 9 lists of 441
mkiv lua stats > node memory usage: 2 glue, 2 penalty, 9 attribute, 28 glue_spec, 3 attribute_list
mkiv lua stats > node list callback tasks: 6 unique task lists, 5 instances (re)created, 39 calls
mkiv lua stats > used backend: pdf (backend for directly generating pdf output)
mkiv lua stats > loaded patterns: en::2, load time: 0.000
mkiv lua stats > jobdata time: 0.002 seconds saving, 0.001 seconds loading
mkiv lua stats > callbacks: 142 direct, 477 indirect, 619 total
mkiv lua stats > randomizer: resumed with value 0.59161960593966
mkiv lua stats > lxml preparation time: 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls
mkiv lua stats > result saved in file: mytest-ascomponent.pdf.pdf, compresslevel 3, objectcompreslevel 3
mkiv lua stats > loaded fonts: 3 files: latinmodern-math.otf (experimental), lmroman12-regular.otf, texgyrepagella-math.otf
mkiv lua stats > fonts load time: 0.409 seconds
mkiv lua stats > luatex banner: this is luatex, version beta-0.76.0-2013061720 (tex live 2013) (rev 4627)
mkiv lua stats > control sequences: 39730 of 65536 + 100000
mkiv lua stats > current memory usage: 43 MB (ctx: 42 MB)
mkiv lua stats > runtime: 0.996 seconds, 1 processed pages, 1 shipped pages, 1.004 pages/second