Am 09.07.2013 um 13:20 schrieb Zenlima
Hi,
I am trying to define the different variants of the Roboto font ([1] for sans and [2][3][4][5] for serif).
Now I am trying to define this for context but I have no idea how to define the condensed versions (plus how to access it later). And how do I enter and access the different weights next to regular and bold (light, thin, heavy)? And how to define the weight light as default (instead of regular)? I got so far:
--------8<-------------------------- \enableregime[utf]
\definefontfeature[Latn-smallcaps][smcp=yes,script=latn,kern=yes] \definefontfeature[fakeitalic][default][slant=.25]
\definefontfeature[arab][mode=node,language=dflt,script=arab,init=yes,medi=yes,fina=yes,isol=yes,liga=yes,dlig=yes,rlig=yes,clig=yes,mark=yes,mkmk=yes,kern=yes,curs=yes]
\definefontsynonym [arab--scheherazade--serif][name:scheherazade][features=arab] \definefontsynonym[brai--6punktoj][name:6punktoj] %^1
\starttypescript[sans][roboto] \definefontfallback[Sans][brai--6punktoj][0x2800-0x283f][force=yes,check=no] \definefontfallback[Sans][arab--scheherazade--serif][0x0600-0x06ff,0x0750-0x077f,0xfb50-0xfdff,0xfe70-0xfefe][force=yes,check=no,rscale=1.9] \definefontsynonym[Sans][name:robotoregular][fallbacks=Sans] \definefontsynonym[SansBold][name:robotobold] \definefontsynonym[SansItalic][name:robotoitalic] \definefontsynonym[SansSlanted][name:robotoitalic] \definefontsynonym[SansBoldItalic][name:robotobolditalic] \definefontsynonym[SansBoldSlanted][name:robotobolditalic] \definefontsynonym[SansCaps][name:robotoregular][features=Latn-smallcaps] \stoptypescript
\starttypescript[serif][roboto] \definefontfallback[Serif][brai--6punktoj][0x2800-0x283f][force=yes,check=no] \definefontfallback[Serif][arab--scheherazade--serif][0x0600-0x06ff,0x0750-0x077f,0xfb50-0xfdff,0xfe70-0xfefe][force=yes,check=no,rscale=1.9] \definefontsynonym[Serif][name:robotoslabregular][fallbacks=Serif] \definefontsynonym[SerifBold][name:robotoslabbold] \definefontsynonym[SerifItalic][name:robotoslabregular][features=fakeitalic] \definefontsynonym[SerifSlanted][name:robotoslabregular][features=fakeitalic] \definefontsynonym[SerifBoldItalic][name:robotoslabbold][features=fakeitalic] \definefontsynonym[SerifBoldSlanted][name:robotoslabbold][features=fakeitalic] \definefontsynonym[SerifCaps][name:robotoslabregular][features=Latn-smallcaps] \stoptypescript
\definetypeface[fliesstext][rm][serif][roboto] \definetypeface[fliesstext][ss][sans][roboto]
\setupbodyfont[fliesstext,rm,11pt]
----8<------------------------------------------
Any help is appreciated :-)
Try the two attached files (untested):