I'm trying to get this "logo"

At the moment I use the following command
\mbox{%
M\hspace{-0.25ex}%
\raisebox{0.18ex}{\tiny A}\hspace{-0.65ex}%
T\hspace{-0.65ex}%
\raisebox{0.18ex}{\tiny E}\hspace{-0.4ex}%
X%
}
But does not fit when I change the font size as '\TeX' or '\LaTeX'. I tried to modify this code, but I can not find the necessary changes
\makeatletter
\DeclareRobustCommand{\MaTeX}{%
M\kern-.09em %
{%
\setbox0\hbox{T}%
\vbox to\ht0{%
\hbox{%
\csname S@\f@size\endcsname
\fontsize\sf@size\z@
\math@fontsfalse\selectfont
A%
}%
\vss
}%
}
\kern-.40em
\hbox{T\kern-.1667em\lower.5ex\hbox{E}\kern-.125ex X}}
\makeatother
and this (modification)




emfor the horizontal spacing, since it measures the "width" of the font, whereasexmeasures its height. (Actually,emrefers to the width ofMandexrefers to the height ofx.) – yo' Jun 20 '12 at 21:42