which is why the next is better:
\definemeasure[fontsize:big] [17pt]
\definemeasure[fontsize:small][0.7\measured{fontsize:big}]
\definefont[big] [name:arial at \measure{fontsize:big}]
\definefont[small][name:arial at \measure{fontsize:small}]
\starttext
\big Dies ist ein großer Text.
On 11/26/2013 7:59 AM, "H. Özoguz" wrote:
Hello there,
I am new in variables in ConTeXt, so I tried the the following example
of two font-sizes wich should have a ratio of 0.7:
\setvariables[fontsize][bigsize=17pt]
\setvariables[fontsize][smallsize=0.7\getvariable{fontsize}{size}]
\definefont[
Hello there,
I am new in variables in ConTeXt, so I tried the the following example
of two font-sizes wich should have a ratio of 0.7:
\setvariables[fontsize][bigsize=17pt]
\setvariables[fontsize][smallsize=0.7\getvariable{fontsize}{size}]
\definefont[big][name:arial at \getvariable{fontsize}