Change the fontfamily of equations in environment

equationsfontsfontsize

When we change fontfamily in an environment, the equations font does not change.
It makes the whole environment is asynchronous.
enter image description here
Please show me how to change the family font of the equation in this environment.
Thank you in advance.
This is my MWE

\documentclass[12pt]{article}
\usepackage[utf8]{vietnam}
%\usepackage{cmbright} 
\newenvironment{note}{\par\noindent\fontfamily{pag}\selectfont}{}
\begin{document}
\noindent Normal text heigth equals to equations text $ \sqrt{x^2+y^2}=z $.
 \begin{note}
Normal text heigth does not equal to equations text $ \sqrt{x^2+y^2}=z $.
 \end{note}
\end{document}  

Best Answer

enter image description here

With mathastext you may define a math font using \MTDeclareVersion[it]{pag}{T1}{pag}{m}{n}

\documentclass[12pt]{article}

\usepackage[margin=2.8cm]{geometry}

\newenvironment{note}{%
    \par\noindent\MTversion{pag}% changes both math font and text font as well
    }{}

    \usepackage[defaultmathsizes, subdued, italic, LGRgreek, symbolre, symbolmisc]{mathastext}
    \MTDeclareVersion[it]{pag}{T1}{pag}{m}{n} % declares a font version
    
\begin{document}
    
    \noindent Normal text height is equal to math text $ \sqrt{x^2+y^2}=z$.
    
    \begin{note}
        Normal text height is equal to math text inside \verb|note| as well $ \sqrt{x^2+y^2}=z$.
    \end{note}
    
\end{document}