ModernCV vertical alignment of symbols in cv title

moderncvvertical alignment

I want to make symbols centered with text.
The image shows my problem.

How can I center symbols?
Not Centered Symbol Problem

Best Answer

The added code will lower the three symbols, aligning them with the text.

The symbols are lowered using \raisebox{<distance>}{<content>} with a negative distance.

x

% !TeX TS-program = pdflatex    

\documentclass[a4paper]{moderncv}
    
\moderncvstyle{banking}
\moderncvcolor{burgundy}                          

\usepackage[T1]{fontenc}
\usepackage{lmodern}

\name{Emin}{Umut Gerçek}
\phone[mobile]{(1)~234~567~890}        
\email{[email protected]}  
\social[github]{eugercek}

% ********************************* added <<<<<<<<<<<<<<<<<<<   
\newbox{\phantombox}
\sbox{\phantombox}{\small (}    
\renewcommand*{\mobilephonesymbol}{\raisebox{-0.5\dp\phantombox}{\small\faMobile*~}}
\renewcommand*{\emailsymbol}{\raisebox{-0.5\dp\phantombox}{\small\faEnvelope[regular]~}}
\renewcommand*{\githubsocialsymbol}{\raisebox{-0.5\dp\phantombox}{\small\faGithub~}}
 %**********************************************     

\begin{document}
\makecvtitle
\end{document}

The vertical position of any symbol can be adjusted using, for example,

\renewcommand*{\mobilephonesymbol}{\raisebox{-0.3\dp\phantombox}{\small\faMobile*~}} 

will move the symbol phone up a bit to compensate for the taller numbers.

Related Question