Thanks Wolfgang,

your example works. :)

For understanding I tried to make the example script-name independent,
so it doesn't fix my environment onto one specific script (see attached
files). But there must be some secret naming conventions.. then I guess
and entered a command to switch to the roboto-typescripcollection.. but
I guess wrongly. Are all secret (font) naming conventions somewhere
documented?

I think the limitation of font-dimensions decreases the reuse ability
of context/mkiv a lot. Also I found some thoughts that were made in the
context community some time ago:

        
http://meeting.contextgarden.net/2010/talks/2010-09-15-mojca-fonts/some-thoughts-about-typescripts.pdf

Is there any progress in that direction with context/mkiv?

H.
\starttext

%\usetypescriptcollection[roboto]

\switchtobodyfont[400-700--normal]

\rm\input ward\par
\ss\input ward

\blank

\switchtobodyfont[400-700--consended]

\rm\input ward\par
\ss\input ward

\blank


\switchtobodyfont[500-700--normal]

\rm\input ward\par
\ss\input ward

\blank

\switchtobodyfont[300-400--normal]

\rm\input ward\par
\ss\input ward

\stoptext
\starttypescriptcollection [roboto]

\starttypescript [sans] [400-700--normal]
  \setups[font:fallback:sans]
  \definefontsynonym [Sans]           [file:robotoregular]
  \definefontsynonym [SansItalic]     [file:robotoitalic]
  \definefontsynonym [SansBold]       [file:robotobold]
  \definefontsynonym [SansBoldItalic] [file:robotobolditalic]
\stoptypescript

\starttypescript [sans] [400-700--condensed]
  \definefontsynonym [Sans]           [file:robotocondensed]
  \definefontsynonym [SansItalic]     [file:robotocondenseditalic]
  \definefontsynonym [SansBold]       [file:robotoboldcondensed]
  \definefontsynonym [SansBoldItalic] [file:robotoboldcondenseditalic]
\stoptypescript

\starttypescript [sans] [500-800--normal]
  \definefontsynonym [Sans]           [file:robotomedium]
  \definefontsynonym [SansItalic]     [file:robotomediumitalic]
  \definefontsynonym [SansBold]       [file:robotoblack]
  \definefontsynonym [SansBoldItalic] [file:robotoblackitalic]
\stoptypescript

\starttypescript [sans] [300-400--normal]
  \definefontsynonym [Sans]           [file:robotolight]
  \definefontsynonym [SansItalic]     [file:robotolightitalic]
  \definefontsynonym [SansBold]       [file:robotoregular]
  \definefontsynonym [SansBoldItalic] [file:robotoitalic]
\stoptypescript

\starttypescript [serif] [400-700--normal,400-700--condensed,500-800--normal]
  \definefontsynonym [Serif]     [file:robotoslabregular]
  \definefontsynonym [SerifBold] [file:robotoslabbold]
\stoptypescript

\starttypescript [serif] [300-400--normal]
  \definefontsynonym [Serif]     [file:robotoslablight]
  \definefontsynonym [SerifBold] [file:robotoslabregular]
\stoptypescript

\starttypescript [400-700--normal,400-700--consended,500-800--normal,300-400--normal]
  \definetypeface [\typescriptone] [rm] [serif] [\typescriptone] [default] [features=default]
  \definetypeface [\typescriptone] [rm] [sans]  [\typescriptone] [default] [features=default]
\stoptypescript

\stoptypescriptcollection

Attachment: signature.asc
Description: PGP signature

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to