On 8/31/2019 9:44 PM, Martin Althoff wrote:
Hello all, I am trying to set the fontsize in a tikz image and that is failing. 
Strangely
at the \node line with : ! Undefined control sequence.

As the MWE stands now, it will fail. The now commented line works.

main context file: 
/usr/local/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
current version: 2019.08.24 22:42

The fontsize statement work in kTikz.

What to do? Are there other ways to change font size in the Context TikZ?

Thanks for any input!

Martin


\usemodule[tikz]
\starttext

\starttikzpicture

\tikzstyle{label}=[minimum size=30mm,line
width=2mm,draw=blue!50,align=center,font=\fontsize{60}{60}\selectfont]
%\tikzstyle{label}=[minimum size=30mm,line width=2mm,draw=blue!50,align=center]

\node[label]  at  (1,1)  {88} ;
\stoptikzpicture
\stoptext
just use context font commands, like

\tikzstyle{label}=[minimum size=30mm,line width=2mm,draw=blue!50,align=center,
font=\bfx]

but i think you can also do more, like

\tikzstyle{label}=[minimum size=30mm,line width=2mm,draw=blue!50,align=center,
font=\bfx\red\setstrut]

and such

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to