I'm using thmtools to define a custom example environment. I'm styling the head as italic, but the number is not being styled correctly: it appears in normal mode instead of italic (the dot after the number is being styled correctly). If I style the head as bold, then the number is styled correctly. Am I missing something or is it a bug?
Minimal working example:
\documentclass[11pt,twoside]{article}
\usepackage{amsthm,thmtools}
\declaretheoremstyle[
name=Example,
spaceabove=\topsep, spacebelow=\topsep,
headindent=0pt, postheadspace=1ex,
headfont=\normalfont\itshape, headpunct=.,
bodyfont=\normalfont,
qed=$\diamond$
]{example}
\declaretheorem[style=example]{example}
\begin{document}
\begin{example}
test
\end{example}
\end{document}