Thank you very much for the example. I got it working for the "regular" style-alternative.I don't know why, but the italic style-alternative do not work. In the log, the font is not even loaded... Do you have an idea of what I'm doing wrong?\definefontalternative[me]\definefontalternative[meit]\definefontalternative[se]\definefontalternative[seit]\starttypescript [serif] [minionpro]\definebodyfont [default] [rm][tf=Serif sa 1,it=SerifItalic sa 1,me=SerifMedium sa 1,meit=SerifMediumItalic sa 1,se=SerifSemiBold sa 1,seit=SerifSemiBoldItalic sa 1,bf=SerifBold sa 1,bi=SerifBoldItalic sa 1]\stoptypescript\starttypescript [serif] [minionpro]\definefontsynonym [Serif] [file:MinionPro-Regular.otf]\definefontsynonym [SerifItalic] [file:MinionPro-It.otf]\definefontsynonym [SerifMedium] [file:MinionPro-Medium.otf]\definefontsynonym [SerifMediumItalic] [file:MinionPro-MediumIt.otf]\definefontsynonym [SerifSemiBold] [file:MinionPro-Semibold.otf]\definefontsynonym [SerifSemiBoldItalic] [file:MinionPro-SemiboldIt.otf]\definefontsynonym [SerifBold] [file:MinionPro-Bold.otf]\definefontsynonym [SerifBoldItalic] [file:MinionPro-BoldIt.otf]\stoptypescript\definetypeface [source] [rm] [serif] [minionpro] [default] [features=default]\definetypeface [source] [mm] [math] [xits] [default]----mtx-context | warning: synctex is enabledmtx-context | run 1: luatex --fmt="/usr/local/texlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en" --jobname="font2" --lua="/usr/local/texlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui" --no-parse-first-line --synctex=1 --c:autogenerate --c:currentrun=1 --c:directives="system.synctex=1" --c:fulljobname="./font2.tex" --c:input="./font2.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:synctex="1" "cont-yes.mkiv"This is LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238)\write18 enabled.system > synctex functionality is enabled (1)!open source > 1 > 1 > /usr/local/texlive/2015/texmf-dist/tex/context/base/cont-yes.mkivConTeXt ver: 2015.05.18 12:26 MKIV current fmt: 2016.4.25 int: english/englishsystem > 'cont-new.mkiv' loadedopen source > 2 > 2 > /usr/local/texlive/2015/texmf-dist/tex/context/base/cont-new.mkivclose source > 2 > 2 > /usr/local/texlive/2015/texmf-dist/tex/context/base/cont-new.mkivsystem > files > jobname 'font2', input './font2', result 'font2'fonts > latin modern fonts are not preloadedlanguages > language 'en' is activeopen source > 2 > 3 > /Users/acailliau/Google Drive/PhD/Dissertation/test-context/font2.texopen source > 3 > 4 > /usr/local/texlive/2015/texmf-dist/tex/context/base/type-imp-xits.mkivopen source > 4 > 5 > /usr/local/texlive/2015/texmf-dist/tex/context/base/type-imp-texgyre.mkivclose source > 4 > 5 > /usr/local/texlive/2015/texmf-dist/tex/context/base/type-imp-texgyre.mkivclose source > 3 > 5 > /usr/local/texlive/2015/texmf-dist/tex/context/base/type-imp-xits.mkivfonts > preloading modern-designsize (mono)fonts > typescripts > unknown library 'modern-designsize'fonts > 'fallback modern-designsize tt 12pt' is loadedbackend > xmp > using file '/usr/local/texlive/2015/texmf-dist/tex/context/base/lpdf-pdx.xml'pages > flushing realpage 1, userpage 1close source > 2 > 5 > /Users/acailliau/Google Drive/PhD/Dissertation/test-context/font2.texclose source > 1 > 5 > /usr/local/texlive/2015/texmf-dist/tex/context/base/cont-yes.mkivmkiv lua stats > used config file: selfautoparent:/texmfcnf.lua;selfautoparent:/texmf-dist/web2c/texmfcnf.luamkiv lua stats > used cache path: /usr/local/texlive/2015/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9mkiv lua stats > synctex tracing: synctex has been enabled (extra log file generated)mkiv lua stats > resource resolver: loadtime 0.105 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 17 found files, scanned paths: <none>mkiv lua stats > stored bytecode data: 371 modules (0.300 sec), 78 tables (0.009 sec), 449 chunks (0.309 sec)mkiv lua stats > traced context: maxstack: 1132, freed: 0, unreachable: 1132mkiv lua stats > running in nuts mode: yesmkiv lua stats > cleaned up reserved nodes: 44 nodes, 439 lists of 438mkiv lua stats > node memory usage: 2 glue, 2 penalty, 9 attribute, 35 glue_spec, 3 attribute_list, 2 tempmkiv lua stats > node list callback tasks: 6 unique task lists, 5 instances (re)created, 202 callsmkiv lua stats > used backend: pdf (backend for directly generating pdf output)mkiv lua stats > loaded patterns: en::2, load time: 0.000mkiv lua stats > jobdata time: 0.001 seconds saving, 0.000 seconds loadingmkiv lua stats > callbacks: 577 direct, 762 indirect, 1339 totalmkiv lua stats > randomizer: resumed with value 0.5377294446983mkiv lua stats > result saved in file: font2.pdf, compresslevel 3, objectcompresslevel 3mkiv lua stats > loaded fonts: 8 files: minionpro-bold.otf, minionpro-boldit.otf, minionpro-it.otf, minionpro-medium.otf, minionpro-regular.otf, minionpro-semibold.otf, xits-math.otf, xits-mathbold.otfmkiv lua stats > fonts load time: 0.275 secondsmkiv lua stats > used platform: osx-ppc, type: unix, binary subtree: binmkiv lua stats > luatex banner: this is luatex, version beta-0.80.0 (tex live 2015) (rev 5238)mkiv lua stats > control sequences: 42831 of 65536 + 100000mkiv lua stats > lua properties: engine: lua, used memory: 113 MB (ctx: 113 MB), hash type: lua, hash chars: min(64,40), symbol mask: utf (τεχ)mkiv lua stats > runtime: 0.790 seconds, 1 processed pages, 1 shipped pages, 1.266 pages/secondSyncTeX written on font2.synctex.gz.system | total runtime: 0.999 secondsOn 3 May 2016 at 22:13, Wolfgang Schuster <schuster.wolfgang@gmail.com> wrote:___________________________________________________________________________________At the moment your only option is to write your own typescript for the fonts.3. Mai 2016 um 08:58The \definefontfamily command is limited to the default alternatives (tf, bf, it, sl, bi, bs ans sc).Thanks for your answer, what shall I use to define non-default alternatives?
\definefontalternative[sb]
\definefontalternative[si]
\starttypescript [sans] [source-sans]
\definebodyfont [default] [ss]
[tf=Sans sa 1,
it=SansItalic sa 1,
sb=SansMedium sa 1,
si=SansMediumItalic sa 1,
bf=SansBold sa 1,
bi=SansBoldItalic sa 1]
\stoptypescript
\starttypescript [sans] [source-sans]
\definefontsynonym [Sans] [file:SourceSansPro-Regular.otf]
\definefontsynonym [SansItalic] [file:SourceSansPro-It.otf]
\definefontsynonym [SansMedium] [file:SourceSansPro-Semibold.otf]
\definefontsynonym [SansMediumItalic] [file:SourceSansPro-SemiboldIt.otf]
\definefontsynonym [SansBold] [file:SourceSansPro-Bold.otf]
\definefontsynonym [SansBoldItalic] [file:SourceSansPro-BoldIt.otf]
\stoptypescript
\definetypeface [source] [ss] [sans] [source-sans] [default] [features=default]
\definetypeface [source] [mm] [math] [xits] [default]
\setupbodyfont[source]
\starttext
Upright {\it Italic} {\sb SemiBold} {\si SemiBoldItalic} {\bf Bold} {\bi BoldItalic}
\stoptext
Wolfgang
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________