「グローバル」マインドマップのノードのフォント サイズを設定する方法

「グローバル」マインドマップのノードのフォント サイズを設定する方法

tex.stackexchange.com では、フォント サイズ (任意のフォント サイズを含む) の設定を定義しようとする問題は見つかりませんでした。私が投稿した問題は「重複」する可能性がありますが、とにかく投稿します。私の質問は、マインドマップのノードの任意のフォント サイズを「グローバル」な方法で設定する方法です。単純な問題ですが、微妙な点がいくつかあると思います。

私の例はこちら

これが私の MWE です:

\documentclass{article}
\usepackage{anyfontsize}
\usepackage{tikz}
\usepackage[paperwidth=5cm,paperheight=5cm]{geometry}
\usetikzlibrary{mindmap}
\begin{document}
\centering\begin{tikzpicture}[mindmap]
    \tikzstyle{every node}=[text width=1cm,align=flush center,minimum size=1cm]
         \node [concept, text=white] at (0,0) 
      {any other text}
    child [concept color=blue!50, grow=0,level distance=80]
    {node [concept] (text) {Text}}; 
\end{tikzpicture}
\end{document}

答え1

以下は、 を使用した私自身の回答です\fontselect{X-size-unitdimen}{X-size-unitdimen}\selectfont。効果を上げるには、 を使用する必要があると考えます\selectfont

\documentclass{article}
\usepackage{anyfontsize}
\usepackage{tikz}
\usepackage[paperwidth=5cm,paperheight=5cm]{geometry}
\usetikzlibrary{mindmap}
\begin{document}
\centering\begin{tikzpicture}[mindmap]
    \tikzstyle{every node}=[font=\fontsize{2mm}{3mm}\selectfont,text width=1cm,align=flush center,minimum size=1cm]
         \node [concept, text=white] at (0,0) 
      {any other text}
    child [concept color=blue!50, grow=0,level distance=80]
    {node [concept] (text) {Text}}; 
\end{tikzpicture}
\end{document}

私の姿と自分の答え

答え2

OpenType フォント (古い TeX Type 1 フォントではない)をコンパイルしlualatexて使用する場合は、整数以外の値でも、任意のサイズと間隔を取得できます。 などのパッケージを使用すると、textposテキストを任意の場所に配置できますが、ここではそのコードは示しません。 MWE:

\documentclass{article} % Default font size. Process with lualatex.
\usepackage{fontspec}
\makeatletter
\renewcommand\normalsize{\@setfontsize\normalsize{11.43pt}{15.824pt}}
\normalsize
\makeatother
\begin{document}
\setlength\parindent{0pt}
Hello World.\\
Hello World\\
Hello World\par
\makeatletter
\renewcommand\normalsize{\@setfontsize\normalsize{13.723bp}{17.448bp}}
\normalsize
\makeatother
Hello Again\\
Hello Again\\
Hello Again\par
\end{document}
\\\
Compile that with `lualatex` and look at the resulting PDF.

関連情報