# Non-integer fontsizes for amsart? Why is TeX still approximating to integers? [duplicate]

I tried, based on this answer, to produce non-integer sizes.

\documentclass[a4paper]{amsart}
\usepackage{blindtext}
\title{Non-integer size fonts for amsart}

\begin{document}
\maketitle
\fontsize{10.6}{13.4}\selectfont
\blindtext[1]

\fontsize{11.4}{13.4}\selectfont
\blindtext[1]

%  \fontsize{11.5}{13.4}\selectfont
%\blindtext[1]

% \fontsize{12}{13.4}\selectfont
%\blindtext[1]

\end{document}


But whether I set 10.6 or 11.4 the result is the same. How can I really set a non-integer font?

## marked as duplicate by egreg fonts StackExchange.ready(function() { if (StackExchange.options.isMobile) return; $('.dupe-hammer-message-hover:not(.hover-bound)').each(function() { var$hover = $(this).addClass('hover-bound'),$msg = $hover.siblings('.dupe-hammer-message');$hover.hover( function() { $hover.showInfoMessage('', { messageElement:$msg.clone().show(), transient: false, position: { my: 'bottom left', at: 'top center', offsetTop: -7 }, dismissable: false, relativeToBody: true }); }, function() { StackExchange.helpers.removeMessages(); } ); }); }); May 21 '17 at 10:30

• use \RequirePackage{fix-cm} as first line or choose naturally scalable fonts eg \usepackage{lmodern} – David Carlisle May 21 '17 at 10:10
• Quoting the answer: “In the case of Computer Modern these type of redefinitions are in fact provided by the package fix-cm so simply loading this package will enable all intermediate sizes.” – egreg May 21 '17 at 10:30

Have a look at the log file:

LaTeX Font Warning: Font shape OT1/cmr/m/n' in size <11.4> not available
(Font)              size <10.95> substituted on input line 10.


Frank already explains the reason for this warning in his answer to the question you have linked in your question. He also tells how to solve it, e.g., using fix-cm. You can also use another font, e.g., Latin Modern (very similar to Computer modern) to have a scalable font:

\documentclass[a4paper]{amsart}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{blindtext}
\title{Non-integer size fonts for amsart}

\begin{document}
\maketitle
\fontsize{10.6}{13.4}\selectfont
\blindtext[1]

\fontsize{11.4}{13.4}\selectfont
\blindtext[1]

\fontsize{11.5}{13.4}\selectfont
\blindtext[1]

\fontsize{12}{13.4}\selectfont
\blindtext[1]

\end{document}
`