2010/11/10 Herbert Voss <herbert.v...@fu-berlin.de>:
>
> I can use the beramono font in this way:
>
> \definefont [Bera] [fvmr8a at 9.5pt]
>
> \starttext
> \Bera
> \input knuth
> \stoptext
>
> but how would I insert it into a typescript of libertine,
> where the mono font should used from bera?

You need something like this:

\starttypescript [mono] [bera] [name]
    \definefontsynonym [Mono] [file:fvmr8a.pfb]
\stoptypescript

\starttypescript[libertine]
   \definetypeface[libertine][rm][serif][libertine][default]
   \definetypeface[libertine][ss][sans] [libertine][default]
   \definetypeface[libertine][tt][mono] [bera]     [default][rscale=0.85]
   \definetypeface[libertine][mm][math] [modern]   [default]
\stoptypescript

Instead of the one definition above you can also define the following
if you want to access the font by name "Bera":

\starttypescript [mono] [bera]
    \definefontsynonym [Bera] [file:fvmr8a.pfb]
\stoptypescript

\starttypescript [mono] [bera] [name]
    \definefontsynonym [Mono] [Bera]
\stoptypescript


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