[NTG-context] Dimension in mkiv definefont

Wolfgang Schuster schuster.wolfgang at gmail.com
Thu Jul 3 06:39:37 CEST 2014


Am 02.07.2014 um 23:43 schrieb Uwe Koloska <ml at KOLORO.DE>:

> Dear list,
> 
> the following runs fine in mkii (i.e. if compiled with 'texexec') but
> gives an error with mkiv (compiled with 'context'):
> 
> \showframe
> 
> \newdimen\Ssize \Ssize=18pt
> %\definefont[MyFont][Serif at 18pt]
> \definefont[MyFont][Serif at \Ssize]
> 
> \starttext
> \MyFont
> \input knuth
> \stoptext
> 
> I have just installed the current version of context-minimals:
> ConTeXt  ver: 2013.06.07 17:34 MKII  fmt: 2014.7.2  int: english/english
> 
> What ist the mkiv way to set a dimension that will be used in a number
> of \definefont commands?


Use the \definemeasure command to set the value and the \measure command to access it.

\definemeasure[Ssize][18pt]

\definefont[MyFont][Serif at \measure{Ssize}]

\starttext
\MyFont
\input knuth
\stoptext

Wolfgang


More information about the ntg-context mailing list