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그래서 문서의 나머지 글꼴 설정(글꼴군, 글꼴 크기 등)은 내가 정의한 대로 유지하되 글꼴은 환경 내부로 만들고 싶습니다.

관련 정보