I just discovered something;

$ echo $OSFONTDIR
/usr/share/fonts/vista-fonts;/home/mohamed/.fonts;/media/sdb1/Fonts

$ pwd
/home/mohamed/.fonts/envy-code-r
$ ls -1
EnvyCodeRBold.ttf
EnvyCodeRItalic.ttf
EnvyCodeR.ttf
EnvyCodeRVSItalicAsBold.ttf
EnvyCodeRVS.ttf

$ mtxrun --script fonts --list "envy"
envy code r          Envy Code R          EnvyCodeR.ttf
envy code r bold     Envy Code R Bold     EnvyCodeRBold.ttf
envy code r italic   Envy Code R Italic   EnvyCodeRItalic.ttf
envy code r vs       Envy Code R VS       EnvyCodeRVS.ttf
envy code r vs bold  Envy Code R VS Bold  EnvyCodeRVSItalicAsBold.ttf

# similar error to the previous one, even though mtxrun finds it, luatex doesn't. If I copy the fonts over to the working directory, the file seems to compile fine (http://pastebin.com/m5272c619 or attached). $ texexec test.tex TeXExec | processing document 'test.tex' TeXExec | no ctx file found TeXExec | tex processing method: context TeXExec | TeX run 1 TeXExec | writing option file test.top TeXExec | using randomseed 990 TeXExec | tex engine: luatex TeXExec | tex format: cont-en LuaTools | running command: luatex --fmt="/home/mohamed/texmf/texmf-cache/luatex-cache/context/c67bf06401a0e1a39f3ee04c60209dc5/formats/cont-en" --lua="/home/mohamed/texmf/texmf-cache/luatex-cache/context/c67bf06401a0e1a39f3ee04c60209dc5/formats/cont-en.luc" "test.tex" "" (test.tex

ConTeXt  ver: 2008.08.05 18:47 MKIV  fmt: 2008.8.31  int: english/english

language : language en is active system : cont-new loaded (/home/mohamed/texmf/tex/context/base/cont-new.tex systems : beware: some patches loaded from cont-new.tex (/home/mohamed/texmf/tex/context/base/cont-new.mkiv lua : used config path - /usr/share/texmf/web2c/texmf.cnf lua : used cache path - /home/mohamed/texmf/texmf-cache/luatex-cache/context/c67bf06401a0e1a39f3ee04c60209dc5 ) (/home/mohamed/texmf/tex/context/base/cont-mtx.tex)) system : cont-old loaded (/home/mohamed/texmf/tex/context/base/cont-old.tex loading : Context Old Macros ) system : cont-fil loaded (/home/mohamed/texmf/tex/context/base/cont-fil.tex loading : Context File Synonyms ) system : cont-sys.rme loaded (/home/mohamed/texmf/tex/context/user/cont-sys.rme (/home/mohamed/texmf/tex/context/base/type-tmf.tex) (/home/mohamed/texmf/tex/context/base/type-siz.tex) (/home/mohamed/texmf/tex/context/base/type-otf.tex)) bodyfont : 12pt rm is loaded specials : tex loaded system : test.top loaded (test.top specials : loading definition file tpd (/home/mohamed/texmf/tex/context/base/spec-tpd.tex specials : loading definition file fdf (/home/mohamed/texmf/tex/context/base/spec-fdf.tex (/home/mohamed/texmf/tex/context/base/spec-fdf.mkiv)) specials : fdf loaded (/home/mohamed/texmf/tex/context/base/spec-tpd.mkiv)) specials : fdf loaded ) (/home/mohamed/texmf/tex/context/base/type-tmf.tex) (/home/mohamed/texmf/tex/context/base/type-siz.tex) (/home/mohamed/texmf/tex/context/base/type-otf.tex) (/home/mohamed/texmf/tex/context/base/type-tmf.tex) (/home/mohamed/texmf/tex/context/base/type-siz.tex) (/home/mohamed/texmf/tex/context/base/type-otf.tex) define font | forced type ttf of EnvyCodeR not found define font | font with name EnvyCodeR is not found define font | unknown font EnvyCodeR, loading aborted ! Font \*adobe12ptrmtfrm*:=name:Envy Code R*default at 12pt not loadable: metric data not found or bad. <to be read again> \relax \xxdododefinefont ...tspec {#4}\newfontidentifier \let \localrelativefontsiz... \fontstrategy ...me \fontclass #2#3#4#5\endcsname \tryingfontfalse \fi <inserted text> ...yle \fontalternative \fontsize \fi \iftryingfont \fontstr... \synchronizefont ...strategy \the \fontstrategies \relax \fi \iftryingfont \... <argument> \getvalue [EMAIL PROTECTED]@ \fontstyle } \edef \fontstyle {\fontstyle }\if... ... l.48 \setupbodyfont[adobe,11pt] ?
# test.tex.  ignore the weird names, i didn't have time to change it around
% engine=luatex
\definefontfeature[latin-smallcaps][smallcaps][script=latn]

\starttypescript [serif] [warnockpro]
\setups[font:fallback:sans] \definefontsynonym [WarnockPro-Regular] [name:Envy Code R] [features=default] \definefontsynonym [WarnockPro-Bold] [name:Envy Code R Bold] [features=default] \definefontsynonym [WarnockPro-Italic] [name:Envy Code R Italic] [features=default] \stoptypescript

\starttypescript [serif] [warnockpro]
\definefontsynonym [Serif] [WarnockPro-Regular] [features=default] \definefontsynonym [SerifBold] [WarnockPro-Bold] [features=default] \definefontsynonym [SerifItalic] [WarnockPro-Italic] [features=default]
\stoptypescript

\definetypeface[adobe][rm][serif][warnockpro][default]
\setupbodyfont[adobe,11pt]

\starttext
\dorecurse{10}{\input zapf}
\stoptext


Mohamed

Attachment: test.log
Description: test.log

% engine=luatex
\definefontfeature[latin-smallcaps][smallcaps][script=latn]

\starttypescript [serif] [warnockpro]
  \setups[font:fallback:sans]      
  \definefontsynonym [WarnockPro-Regular]    [name:Envy Code R]  [features=default]
  \definefontsynonym [WarnockPro-Bold]       [name:Envy Code R Bold]    [features=default]
  \definefontsynonym [WarnockPro-Italic]     [name:Envy Code R Italic]   [features=default]    
\stoptypescript

\starttypescript [serif] [warnockpro]
  \definefontsynonym [Serif]           [WarnockPro-Regular]        [features=default]
  \definefontsynonym [SerifBold]       [WarnockPro-Bold]           [features=default]
  \definefontsynonym [SerifItalic]     [WarnockPro-Italic]         [features=default]
\stoptypescript

\definetypeface[adobe][rm][serif][warnockpro][default]
\setupbodyfont[adobe,11pt]

\starttext
\dorecurse{10}{\input zapf}
\stoptext
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to