I sometimes want to put the content of a float on a page by itself and control the alignment in the usual type area. To do this, I use a minipage that has exactly the size \textwidth x \textheight. However, depending on the content (and the packages loaded), I get Float too large warnings.
In the following example, both figures contain only a minipage with some text in them, the second one additionally has a footnote. For the first one I get a warning about the float being too large by 1.94397pt, for the second one by 2.85002pt. If I remove \usepackage[T1]{fontenc}, the first warning goes away, but the second stays. If I switch to LuaLaTeX, the first warning is back, this time about 2.06pt.
Why does the minipage not perfectly fit the type area and how can I fix this? Why does it even depend on the minipage's content? I would have thought the whole point of a fixed-height minipage is that the height is, well, fixed.
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{lipsum}
\begin{document}
Hello World!
\begin{figure}[p]
\begin{minipage}[b][\textheight]{\textwidth}
\lipsum[1]
\end{minipage}
\end{figure}
\begin{figure}[p]
\begin{minipage}[b][\textheight]{\textwidth}
\lipsum[1]\footnote{test}
\end{minipage}
\end{figure}
\end{document}