Re: [NTG-context] TikZ, MKIV and font switching
On Wed, Apr 8, 2009 at 13:49,
Considering
\enableregime[utf8] \useencoding[ffr] \mainlanguage[fr]
\usetypescript[helvetica][ec] \setupbodyfont[helvetica,12pt]
\setupcolors[state=start]
\usemodule[tikz] \usetikzlibrary[mindmap]
\starttext \input knuth
\starttikzpicture[mindmap,text=white, root concept/.style={concept color=blue}, level 1 concept/.append style= {every child/.style={concept color=blue!50}}] \node [concept] {Root Concept} child[grow=30] {node[concept] {child}} child[grow=0 ] {node[concept] {child}}; \stoptikzpicture
\input tufte \stoptext
"\input knuth" and "\input tufte" is typesetted with TexGyreHeros-Regular but "Root concept" and "child" texts are typesetted with LMRoman10-Regular...
What if I want my TikZ text with TexGyreHeros ?
I don't know about "helvetica" since it's broken at the moment, but with \usetypescript[palatino] \setupbodyfont[palatino,12pt] the labels inside the mindmap are already typeset in "gyre palatino" here. What version of ConTeXt/LuaTeX/TikZ do you use? In MKII the colors are broken though. Hans? Has anything changed in color handling mechanism recently? I don't know whether I need to bribe you or Till Tantau to fix the issue. (But I need to admit that I didn't update ConTeXt in the last few days.) Mojca
Mojca Miklavec a écrit :
I don't know about "helvetica" since it's broken at the moment, but with \usetypescript[palatino] \setupbodyfont[palatino,12pt] the labels inside the mindmap are already typeset in "gyre palatino" here. What version of ConTeXt/LuaTeX/TikZ do you use?
In MKII the colors are broken though. Hans? Has anything changed in color handling mechanism recently? I don't know whether I need to bribe you or Till Tantau to fix the issue. (But I need to admit that I didn't update ConTeXt in the last few days.) With MKIV (ConTeXt ver: 2009.04.06 21:42 MKIV fmt: 2009.4.8 int: english/english) and latest t-tikz the result is good with palatino.
I have processed the test file with \startMPenvironment[global] \usetypescript[postscript] \setupbodyfont[postscript,ss,12pt] \stopMPenvironment and the mindmap labels are in Termes... Any idea about a workaround to obtain my labels in Heros ? Renaud
Am 08.04.2009 um 20:25 schrieb Renaud Aubin:
I have processed the test file with
\startMPenvironment[global] \usetypescript[postscript] \setupbodyfont[postscript,ss,12pt] \stopMPenvironment
what happens with \definetypeface[helvetica][ss][sans][heros][default] \setupbodyfont[helvetica] Wolfgang
Am 08.04.2009 um 20:25 schrieb Renaud Aubin:
I have processed the test file with
\startMPenvironment[global] \usetypescript[postscript] \setupbodyfont[postscript,ss,12pt] \stopMPenvironment
and the mindmap labels are in Termes... Any idea about a workaround to obtain my labels in Heros ?
you could ask on the pgf/tikz list because it's not related to context itself or look in the manual how to change the font. I don't know tikz good enough but i was able to track it down to \setvalue{pgfutil@selectfont}{\ss} which change the labels to helvetica. Wolfgang
participants (3)
-
Mojca Miklavec
-
Renaud Aubin
-
Wolfgang Schuster