[Tex/LaTex] How to adjust the length of the hat

symbols

While using \widehat{w} and \widehat{m} inside the math environment the length of the hat is lesser in the first. How to fix this length? I do not want to use \hat command.

\documentclass[12pt]{article}
\usepackage{lmodern} 
\usepackage{amsmath}
\usepackage{amssymb}
\newcommand{\wh}{\widehat}
\begin{document}
$\widehat{w}$ 
$\widehat{m}$ 
\end{document}

enter image description here

Best Answer

Here is a proposed alternative taking double-width on the standard \hat (the actual proportion can be changed to suit, by editing the {2} and {.5} to a different set of reciprocals). EDITED to handle all math style sizes, using scalerel's native stretching macros.

\documentclass[12pt]{article}
\usepackage{lmodern} 
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{graphicx,scalerel}
\newcommand\wh[1]{\hstretch{2}{\hat{\hstretch{.5}{#1}}}}
\begin{document}
$\hat{w} \hat{m}$ too narrow

$\widehat{w}  \widehat{m}$ not uniform

$\wh{w} \wh{m},
\scriptstyle\wh{w} \wh{m},
\scriptscriptstyle\wh{w} \wh{m}
$ proposed
\end{document}

enter image description here