Fix pdfTeX error: font expansion is only possible with scalable fonts.
This error occurs when the microtype package tries to stretch or shrink characters using font expansion, but pdfTeX finds a bitmap font instead of a scalable Type 1 or TrueType outline. It stops the build and halts PDF generation immediately.
The short answer: load Latin Modern and T1 font encoding so pdfTeX uses scalable fonts, or install the missing cm-super package on local distributions. On Texeno, projects compile cleanly on TeX Live 2026 with scalable fonts enabled by default.
Why the error happens
The microtype package improves text appearance by subtly stretching and shrinking letterforms. This process, known as font expansion, requires vector outlines that can scale continuously to any fractional width.
When your document lacks a scalable font package, pdfTeX falls back to bitmap fonts stored at fixed resolutions, such as 600 dpi PK files. Because bitmap fonts cannot scale without distortion, microtype halts the compiler and prints the fatal font expansion error.
Five ways to fix the error
Load Latin Modern and T1 encoding
The standard fix is switching your document font from traditional Computer Modern bitmaps to Latin Modern outlines, which provide scalable vector files for every weight and size.
\usepackage[T1]{fontenc} \usepackage{lmodern}Install the cm-super package
If you are running a local TeX installation like TeX Live or MiKTeX and still see the error after loading Latin Modern, your system may lack the Type 1 outline files. Install cm-super through your package manager or command line.
sudo tlmgr install cm-super
Refresh font maps and filename databases
Local distributions sometimes fail to register newly installed vector fonts until you update the mapping files and refresh the database.
updmap initexmf --mkmaps
Disable expansion for non-scalable fonts
If you must use a legacy package or custom class that relies on bitmap fonts, you can turn off microtype font expansion while keeping protrusion active.
\usepackage[expansion=false]{microtype}Switch to LuaLaTeX or XeLaTeX
Modern engines handle system fonts natively without relying on pdfTeX metric limitations or bitmap fallbacks. Change your compiler in project settings to bypass the restriction entirely.
How to identify the offending font in your log
If the error message does not name the problematic font, open your build log and look for file references ending in .pk or font names loaded right before the crash.
Alternatively, comment out the microtype package temporarily, compile the document once, and inspect the font summary at the end of the log to spot any bitmap entries.
Questions
What does auto expansion is only possible with scalable fonts mean?
It means microtype attempted to dynamically stretch letterforms for better justification, but the font currently loaded is a raster bitmap rather than a scalable vector file.
Why did my project compile locally but fail online or vice versa?
Different TeX Live versions and local package installations handle font fallbacks differently. A machine missing the cm-super package defaults to bitmap generation.
Does this error affect Texeno projects?
Try your own paper in Texeno.
Start free, upload a project as a .zip and press Recompile. Upgrade when you need longer compiles.
Start writing