Problem using the new buildin simplefont \definefontfamily with OTF fonts
I am using Ubuntu 13.10 with ConTeXt daily build and LuaTeX daily build. My ConTeXt version is 2014.02.14 17:07, LuaTeX version beta-0.78.3 (TeX Live 2014/dev/Debian) (rev 4850) . While there are some problems with using the newly added feature of build-in support of simplefonts. I was using something like \definefontfamily[mainface][serif][Kepler] \setupbodyfont[mainface] \starttext Hello World! \stoptext It would end up with using Latin Modern font. The log is like this: system > 'cont-new.mkiv' loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv) system > files > jobname '003', input './003', result '003' fonts > latin modern fonts are not preloaded languages > language 'en' is active (/home/alan/tex/test/003.tex fonts > preloading latin modern fonts (math) {/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fonts > 'fallback modern mm 12pt' is loaded fonts > preloading latin modern fonts (mono) fonts > 'fallback modern tt 12pt' is loaded fonts > defining > font with asked name 'unknown' is not found using lookup 'file' fonts > defining > unknown font 'unknown', loading aborted fonts > defining > unable to define 'unknown' as 'mainface-12pt-rm-tf-0--0' backend > xmp > using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' However, when I use something like Times New Roman (TTF), Utopia (TTF), Georgia(TTF), FZShuSong-Z01 (TTF Chinese font) it would be working all right, fonts applied, no error reported. But like in the example, Kepler (OTF), Minion Pro (OTF), Utopia Std (OTF) would failed to be applied. It is as if it would fail every OTF font. When I am using some font in the legacy simplefonts module mode, something like: \usemodule[simplefonts] \setmainfont[Kepler] \starttext Hello World! \stoptext Would be working alright. Logged as below: fonts > latin modern fonts are not preloaded languages > language 'en' is active (/home/alan/tex/test/003.tex resolvers > modules > 'simplefonts' is loaded (/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.mkiv loading > ConTeXt User Module / Simplefonts <+ /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua>){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} backend > xmp > using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1 ) ) So what's the problem? Is there anything I should look into? If it is a problem with TeXLive how can I use the ConTeXt Standalone without conflict with the previous installed TeXLive (Since I am also using LaTeX) ? Regards. 南京大学 现代工程与应用科学学院 2013级 罗晨星 Luo Chenxing ————————————— chenxing.luo@gmail.com
Am 07.03.2014 um 14:35 schrieb 罗晨星
I am using Ubuntu 13.10 with ConTeXt daily build and LuaTeX daily build. My ConTeXt version is 2014.02.14 17:07, LuaTeX version beta-0.78.3 (TeX Live 2014/dev/Debian) (rev 4850) .
While there are some problems with using the newly added feature of build-in support of simplefonts.
I was using something like
\definefontfamily[mainface][serif][Kepler] \setupbodyfont[mainface] \starttext Hello World! \stoptext
It would end up with using Latin Modern font.
The log is like this:
system > 'cont-new.mkiv' loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv) system > files > jobname '003', input './003', result '003' fonts > latin modern fonts are not preloaded languages > language 'en' is active (/home/alan/tex/test/003.tex fonts > preloading latin modern fonts (math) {/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fonts > 'fallback modern mm 12pt' is loaded fonts > preloading latin modern fonts (mono) fonts > 'fallback modern tt 12pt' is loaded fonts > defining > font with asked name 'unknown' is not found using lookup 'file' fonts > defining > unknown font 'unknown', loading aborted fonts > defining > unable to define 'unknown' as 'mainface-12pt-rm-tf-0--0' backend > xmp > using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
However, when I use something like Times New Roman (TTF), Utopia (TTF), Georgia(TTF), FZShuSong-Z01 (TTF Chinese font) it would be working all right, fonts applied, no error reported.
But like in the example, Kepler (OTF), Minion Pro (OTF), Utopia Std (OTF) would failed to be applied. It is as if it would fail every OTF font.
When I am using some font in the legacy simplefonts module mode, something like:
\usemodule[simplefonts] \setmainfont[Kepler] \starttext Hello World! \stoptext
Would be working alright. Logged as below:
fonts > latin modern fonts are not preloaded languages > language 'en' is active (/home/alan/tex/test/003.tex resolvers > modules > 'simplefonts' is loaded (/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.mkiv loading > ConTeXt User Module / Simplefonts <+ /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua>){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} backend > xmp > using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1 ) )
So what's the problem? Is there anything I should look into?
If it is a problem with TeXLive how can I use the ConTeXt Standalone without conflict with the previous installed TeXLive (Since I am also using LaTeX) ?
1. Make sure context has added the fonts to its database, you can check this for the minion pro fonts with the following command: mtxrun --script fonts --list --all minionpro* When you don’t see a list with the file for the minion pro font you can try to update the database with mtxrun --script fonts --refresh 2. Use the correct name in the third argument of \definefontfamily, e.g. “Kepler” has to be replaced with “Kepler Std”. Wolfgang
1. All the OTF fonts have been loaded correctly, they showed both in the
console and in the database file, but none of them worked correctly for the
\definefontfamily control sequence.
minionpro minionprobold
/home/alan/.fonts/MinionPro-Bold.otf
minionprobold minionprobold
/home/alan/.fonts/MinionPro-Bold.otf
minionproboldcapt minionproboldcapt
/home/alan/.fonts/MinionPro-BoldCapt.otf
minionproboldcn minionproboldcn
/home/alan/.fonts/MinionPro-BoldCn.otf
minionproboldcncapt minionproboldcncapt
/home/alan/.fonts/MinionPro-BoldCnCapt.otf
minionproboldcndisp minionproboldcndisp
/home/alan/.fonts/MinionPro-BoldCnDisp.otf
minionproboldcnit minionproboldcnit
/home/alan/.fonts/MinionPro-BoldCnIt.otf
minionproboldcnitcapt minionproboldcnitcapt
/home/alan/.fonts/MinionPro-BoldCnItCapt.otf
minionproboldcnitdisp minionproboldcnitdisp
/home/alan/.fonts/MinionPro-BoldCnItDisp.otf
minionproboldcnitsubh minionproboldcnitsubh
/home/alan/.fonts/MinionPro-BoldCnItSubh.otf
minionproboldcnsubh minionproboldcnsubh
/home/alan/.fonts/MinionPro-BoldCnSubh.otf
minionprobolddisp minionprobolddisp
/home/alan/.fonts/MinionPro-BoldDisp.otf
minionproboldit minionproboldit
/home/alan/.fonts/MinionPro-BoldIt.otf
minionprobolditalic minionproboldcnit
/home/alan/.fonts/MinionPro-BoldCnIt.otf
minionprobolditcapt minionprobolditcapt
/home/alan/.fonts/MinionPro-BoldItCapt.otf
minionprobolditdisp minionprobolditdisp
/home/alan/.fonts/MinionPro-BoldItDisp.otf
minionprobolditsubh minionprobolditsubh
/home/alan/.fonts/MinionPro-BoldItSubh.otf
minionproboldsubh minionproboldsubh
/home/alan/.fonts/MinionPro-BoldSubh.otf
minionprocapt minionprocapt
/home/alan/.fonts/MinionPro-Capt.otf
minionprocn minionprocn
/home/alan/.fonts/MinionPro-Cn.otf
minionprocncapt minionprocncapt
/home/alan/.fonts/MinionPro-CnCapt.otf
minionprocndisp minionprocndisp
/home/alan/.fonts/MinionPro-CnDisp.otf
minionprocnit minionprocnit
/home/alan/.fonts/MinionPro-CnIt.otf
minionprocnitcapt minionprocnitcapt
/home/alan/.fonts/MinionPro-CnItCapt.otf
minionprocnitdisp minionprocnitdisp
/home/alan/.fonts/MinionPro-CnItDisp.otf
minionprocnitsubh minionprocnitsubh
/home/alan/.fonts/MinionPro-CnItSubh.otf
minionprocnsubh minionprocnsubh
/home/alan/.fonts/MinionPro-CnSubh.otf
minionprodisp minionprodisp
/home/alan/.fonts/MinionPro-Disp.otf
minionproit minionproit
/home/alan/.fonts/MinionPro-It.otf
minionproitalic minionprocnit
/home/alan/.fonts/MinionPro-CnIt.otf
minionproitcapt minionproitcapt
/home/alan/.fonts/MinionPro-ItCapt.otf
minionproitdisp minionproitdisp
/home/alan/.fonts/MinionPro-ItDisp.otf
minionproitsubh minionproitsubh
/home/alan/.fonts/MinionPro-ItSubh.otf
minionpromedium minionpromedium
/home/alan/.fonts/MinionPro-Medium.otf
minionpromediumcapt minionpromediumcapt
/home/alan/.fonts/MinionPro-MediumCapt.otf
minionpromediumcn minionpromediumcn
/home/alan/.fonts/MinionPro-MediumCn.otf
minionpromediumcncapt minionpromediumcncapt
/home/alan/.fonts/MinionPro-MediumCnCapt.otf
minionpromediumcndisp minionpromediumcndisp
/home/alan/.fonts/MinionPro-MediumCnDisp.otf
minionpromediumcnit minionpromediumcnit
/home/alan/.fonts/MinionPro-MediumCnIt.otf
minionpromediumcnitcapt minionpromediumcnitcapt
/home/alan/.fonts/MinionPro-MediumCnItCapt.otf
minionpromediumcnitdisp minionpromediumcnitdisp
/home/alan/.fonts/MinionPro-MediumCnItDisp.otf
minionpromediumcnitsubh minionpromediumcnitsubh
/home/alan/.fonts/MinionPro-MediumCnItSubh.otf
minionpromediumcnsubh minionpromediumcnsubh
/home/alan/.fonts/MinionPro-MediumCnSubh.otf
minionpromediumdisp minionpromediumdisp
/home/alan/.fonts/MinionPro-MediumDisp.otf
minionpromediumit minionpromediumit
/home/alan/.fonts/MinionPro-MediumIt.otf
minionpromediumitcapt minionpromediumitcapt
/home/alan/.fonts/MinionPro-MediumItCapt.otf
minionpromediumitdisp minionpromediumitdisp
/home/alan/.fonts/MinionPro-MediumItDisp.otf
minionpromediumitsubh minionpromediumitsubh
/home/alan/.fonts/MinionPro-MediumItSubh.otf
minionpromediumsubh minionpromediumsubh
/home/alan/.fonts/MinionPro-MediumSubh.otf
minionpronormal minionprocapt
/home/alan/.fonts/MinionPro-Capt.otf
minionproregular minionproregular
/home/alan/.fonts/MinionPro-Regular.otf
minionprosemibold minionprosemibold
/home/alan/.fonts/MinionPro-Semibold.otf
minionprosemiboldcapt minionprosemiboldcapt
/home/alan/.fonts/MinionPro-SemiboldCapt.otf
minionprosemiboldcn minionprosemiboldcn
/home/alan/.fonts/MinionPro-SemiboldCn.otf
minionprosemiboldcncapt minionprosemiboldcncapt
/home/alan/.fonts/MinionPro-SemiboldCnCapt.otf
minionprosemiboldcndisp minionprosemiboldcndisp
/home/alan/.fonts/MinionPro-SemiboldCnDisp.otf
minionprosemiboldcnit minionprosemiboldcnit
/home/alan/.fonts/MinionPro-SemiboldCnIt.otf
minionprosemiboldcnitcapt minionprosemiboldcnitcapt
/home/alan/.fonts/MinionPro-SemiboldCnItCapt.otf
minionprosemiboldcnitdisp minionprosemiboldcnitdisp
/home/alan/.fonts/MinionPro-SemiboldCnItDisp.otf
minionprosemiboldcnitsubh minionprosemiboldcnitsubh
/home/alan/.fonts/MinionPro-SemiboldCnItSubh.otf
minionprosemiboldcnsubh minionprosemiboldcnsubh
/home/alan/.fonts/MinionPro-SemiboldCnSubh.otf
minionprosemibolddisp minionprosemibolddisp
/home/alan/.fonts/MinionPro-SemiboldDisp.otf
minionprosemiboldit minionprosemiboldit
/home/alan/.fonts/MinionPro-SemiboldIt.otf
minionprosemibolditcapt minionprosemibolditcapt
/home/alan/.fonts/MinionPro-SemiboldItCapt.otf
minionprosemibolditdisp minionprosemibolditdisp
/home/alan/.fonts/MinionPro-SemiboldItDisp.otf
minionprosemibolditsubh minionprosemibolditsubh
/home/alan/.fonts/MinionPro-SemiboldItSubh.otf
minionprosemiboldsubh minionprosemiboldsubh
/home/alan/.fonts/MinionPro-SemiboldSubh.otf
minionprosubh minionprosubh
/home/alan/.fonts/MinionPro-Subh.otf
2. I've tried every single opinion, Kepler, KeplerStd, Kepler Std,
KeplerStd-Regular, keplerstd whatever, since I'm being quite desperate, but
none of them worked.
2014年3月10日 上午6:12于 "Wolfgang Schuster"
Am 07.03.2014 um 14:35 schrieb 罗晨星
: I am using Ubuntu 13.10 with ConTeXt daily build and LuaTeX daily build. My ConTeXt version is 2014.02.14 17:07, LuaTeX version beta-0.78.3 (TeX Live 2014/dev/Debian) (rev 4850) .
While there are some problems with using the newly added feature of build-in support of simplefonts.
I was using something like
\definefontfamily[mainface][serif][Kepler] \setupbodyfont[mainface] \starttext Hello World!
\stoptext
It would end up with using Latin Modern font.
The log is like this:
system > 'cont-new.mkiv' loaded (/usr/share/texmf/tex/context/base/cont-new.mkiv) system > files > jobname '003', input './003', result '003' fonts > latin modern fonts are not preloaded languages > language 'en' is active (/home/alan/tex/test/003.tex fonts > preloading latin modern fonts (math)
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} fonts > 'fallback modern mm 12pt' is loaded fonts > preloading latin modern fonts (mono) fonts > 'fallback modern tt 12pt' is loaded fonts > defining > font with asked name 'unknown' is not found using lookup 'file' fonts > defining > unknown font 'unknown', loading aborted fonts > defining > unable to define 'unknown' as 'mainface-12pt-rm-tf-0--0' backend > xmp > using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml'
However, when I use something like Times New Roman (TTF), Utopia (TTF), Georgia(TTF), FZShuSong-Z01 (TTF Chinese font) it would be working all right, fonts applied, no error reported.
But like in the example, Kepler (OTF), Minion Pro (OTF), Utopia Std (OTF) would failed to be applied. It is as if it would fail every OTF font.
When I am using some font in the legacy simplefonts module mode, something like:
\usemodule[simplefonts] \setmainfont[Kepler] \starttext Hello World!
\stoptext
Would be working alright. Logged as below:
fonts > latin modern fonts are not preloaded languages > language 'en' is active (/home/alan/tex/test/003.tex resolvers > modules > 'simplefonts' is loaded (/usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.mkiv loading > ConTeXt User Module / Simplefonts <+ /usr/share/texmf/tex/context/third/simplefonts/t-simplefonts.lua>){/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map} backend > xmp > using file '/usr/share/texmf/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1
) )
So what's the problem? Is there anything I should look into?
If it is a problem with TeXLive how can I use the ConTeXt Standalone without conflict with the previous installed TeXLive (Since I am also using LaTeX) ?
1. Make sure context has added the fonts to its database, you can check this for the minion pro fonts with the following command:
mtxrun --script fonts --list --all minionpro*
When you don’t see a list with the file for the minion pro font you can try to update the database with
mtxrun --script fonts --refresh
2. Use the correct name in the third argument of \definefontfamily, e.g. “Kepler” has to be replaced with “Kepler Std”.
Wolfgang
participants (2)
-
Wolfgang Schuster
-
罗晨星