[Tex/LaTex] Changing font size of captions in figures

fontsieeetran

I'm using IEEEtran class for my conference publication in latex. The guideline says that the captions for figures should be in font size 8. I tried all these methods mentioned in this forum but none worked. Can someone guide me on this please. I found out that the problem is with the figures.
The default IEEEtran is somehow being overwritten.
http://rauhut.ins.uni-bonn.de/bare_conf.tex

\begin{figure}[tb]
\subfloat[figure A] {
\includegraphics[width=0.24\textwidth]{A}
}
\subfloat[figure B] {
\includegraphics[width=0.25\textwidth]{B}
}
\caption{ this is the caption}
\label{fig:room}
\end{figure}

The preamble is

\usepackage{caption}
\usepackage[font=footnotesize]{subfig}

Best Answer

With default settings, the class IEEEtran already uses font size 8pt for captions:

\listfiles
\documentclass[conference]{IEEEtran}
\begin{document}
  % \maketitle
  \begin{figure}
    \makeatletter
    \caption{Figure caption with fontsize \expandafter\@car\f@size\@nil}
  \end{figure}
\end{document}

Result

\maketitle or putting the figure into an included file does not change the font size.

 *File List*
IEEEtran.cls    2012/12/27 V1.8 by Michael Shell
  ot1ptm.fd    2001/06/04 font definitions for OT1/ptm.
 ***********