% to use non-standard font
\usepackage{iftex}

\usepackage[T1]{fontenc}
\IfFileExists{uarial.sty}{
  \usepackage{newtxsf, uarial, textcomp}
  \usepackage[italic]{mathastext}
}{
  \usepackage[scaled]{helvet}
}
\renewcommand\familydefault{\sfdefault}
\usepackage[scaled]{beramono}

\setbeamerfont{title}{family=\fontfamily{ugq}, size=\LARGE}
\setbeamerfont{subtitle}{family=\sffamily, series=\mdseries, size=\large}

\setbeamerfont{institute}{family=\fontfamily{ugq}, size=\Large}
\setbeamerfont{author}{family=\sffamily, series=\bfseries, size=\footnotesize}
\setbeamerfont{date}{family=\sffamily, series=\bfseries, size=\footnotesize}

\setbeamerfont{frametitle}{family=\fontfamily{ugq}, size=\LARGE}
\setbeamerfont{framesubtitle}{family=\sffamily, series=\mdseries, size=\Large}

\setbeamerfont{normal text}{family=\sffamily, series=\mdseries, size=\Large}
