[Tex/LaTex] Align Text in Footline

beamerheader-footervertical alignment

I am new to LaTeX – Beamer. I am trying to create a template, and am almost done. However, there I am unable to align the text in the footline.

If i play around with the hspace vspace it increases the width of the footline which is something i do not desire. I was wondering if there was a way to vertically align the text in the footline to be in the center of the bar.

\newlength\barwidth
\setlength\barwidth{24pt} % width of bars set here
\setbeamercolor*{footline}{fg=orange,bg=black} 
\setbeamertemplate{footline}{%  \begin{beamercolorbox}[sep=2pt,left]{footline}% 
\includegraphics[width=\barwidth,height=\barwidth]{img/GGLogo.png}      
~\hfill \fontsize{12}{14}\selectfont% 
usebeamercolor[fg]{footline}\hspace{0em}\vspace{0em}\textbf\inserttitle%
\end{beamercolorbox} }

Best Answer

Putting my comments into an answer (and shamelessly stealing the MWE from @samcarter; thanks for that)

\documentclass{beamer}

\newlength\barwidth
\setlength\barwidth{24pt} % width of bars set here
\setbeamercolor*{footline}{fg=orange,bg=black} 
\setbeamerfont{title in head/foot}{series=\bfseries, size=\fontsize{12}{14}\selectfont}

\setbeamertemplate{footline}{%
    \begin{beamercolorbox}[wd=\paperwidth,sep=2pt]{footline}%
      \parbox[c]{0pt}{\makebox[0pt][l]{% doesn't use any horizontal space
        \includegraphics[height=\barwidth,width=\barwidth]{example-image}%
      }}%
      \hspace{0.1\textwidth}%
      \parbox[c]{0.8\textwidth}{%
        \centering%
        \usebeamerfont{title in head/foot}\inserttitle%
      }%
      \hspace{0.1\textwidth}%
    \end{beamercolorbox}%
}

\title{text}

\begin{document}

\begin{frame}

\end{frame}

\title{This is longer title, which might take up too much space}
\begin{frame}

\end{frame}


\end{document}

enter image description here enter image description here