[Tex/LaTex] Place image and Text in same title line

graphicshorizontal alignment

I have title part in latex code and i want to put image in left side. Page is in center.

\title{\vspace{-15mm}
\fontsize{25pt}{10pt}\selectfont
\textbf{\hspace*{-1pt} 
\includegraphics[width=0.15\textwidth]{./img/logo.png}\hfill 
\hspace*{-100pt} This Text}}

But After this code "This Text" is going to left side (something between left and center)
How to put them correctly?
Thanks for attention…

Best Answer

Sorry, corected now. One of \hfill's on both sides can be removed, but now it is easier to understand, how the centering is obtained: one hidden plus one explicit, corrected by two on the right hand side.

\documentclass{article}
\usepackage{graphicx}
\usepackage{lipsum}

\begin{document}

\title{\vspace{-15mm}
\fontsize{25pt}{10pt}\selectfont
\textbf{%\hspace*{-1pt} 
%\includegraphics[width=0.15\textwidth]{./img/logo.png}\hfill 
\makebox[0pt][l]{\includegraphics[width=0.15\textwidth]{it}}
\hfill
This Text \hfill\hfill
%\hspace*{-100pt} This Text}}
}}

\maketitle

\lipsum

\end{document}

enter image description here