tikz 環境内でのみフォント プロパティを変更する

tikz 環境内でのみフォント プロパティを変更する

私はよくtikz環境内で図に注釈を付けます。例えば

\documentclass[12pt]{report}

\usepackage[T1]{fontenc}
\usepackage{Baskervaldx}
\usepackage[Baskervaldx,upint]{newtxmath}

\usepackage{tikz}
    \usetikzlibrary{arrows,arrows.meta,patterns,decorations,shapes.geometric}
    \usetikzlibrary{decorations.markings,decorations.pathmorphing,decorations.pathreplacing}    

\begin{document}

    \begin{figure}[h] 
       \centering        
       \begin{tikzpicture}
          \node[anchor=south west,inner sep=0] at (0,0) 
          {
            \includegraphics[width=1.0\textwidth]{Images/MyImage.pdf}
          };
          \begin{scope}
             \draw[decoration={brace,raise=0mm},decorate] (58.4mm,37mm)--(80.1mm,37mm)node[above,align=center,midway,sloped]{here is some text};
          \end{scope}
        \end{tikzpicture}
        \caption{Oh Caption, my Caption...}
        \label{MyFigure}
     \end{figure}

\end{document}

tikzpicture現時点ではドキュメントのグローバル フォント設定によって設定されているだけのようなので、環境を呼び出すたびにフォント サイズを小さくしたいと思います。

そこで、ドキュメントの残りのフォント設定(フォントファミリ、フォントサイズなど)は定義したままにし、tikzpicture環境内のフォントを

関連情報