Using type-xxx.tex and hans-test.tex, {\tf<variable> } works but \switchtobodyfont 
does not do anything. type-xxx.tex uses computer modern so anyone can try it with a 
default ConTeXt setup. 
Please advise.

Another question: what does `global' stand for? Can I define my own size-changing 
arguments to \switchtobodyfont?

Thnx to all and especially Hans for your help and patience.

Best wishes
Idris

%--------------------hans-test.tex-----------------------
\starttext

\usetypescriptfile[type-xxx]
\usetypescript[arabtest]
\setupbodyfont[omarab,12pt]

This is a test % This is a test

\switchtobodyfont[big] This is a test

\switchtobodyfont[global] This is a test

\switchtobodyfont[small] This is a test

\switchtobodyfont[8pt] This is a test

\stoptext

%----------------type-xxx.tex-------------------------
\starttypescript [naskh] [omega] [name]

   \definefontsynonym [OmegaArabic]      [cmss10]   % [omarab]
   \definefontsynonym [OmegaArabic-Bold] [cmssbx10] % [omarabb]

   \definefontsynonym [Naskh]      [OmegaArabic]
   \definefontsynonym [NaskhBold]  [OmegaArabic-Bold]

\stoptypescript

\starttypescript [naskh] [omega] [size]

   \definebodyfont
     [20.7pt,17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt]
     [rm]
     [tf=Naskh,
      bf=NaskhBold]

\stoptypescript

\starttypescript [arabtest]

   \definebodyfontenvironment
     [omarab]
     [default]
     [interlinespace=5ex]

  \definetypeface [omarab] [rm] [naskh] [omega] [omega]

\stoptypescript
==========================
Dr. Idris Samawi Hamid
Depatment of Philosophy
Colorado State University
Fort Collins, CO 80526


Reply via email to