At work, I use the excellent FPDF library to write PDF files. But I couldn’t find any way to automatically make the text as large as possible to fit into a given space. So I wrote the following function to stick into the FPDF class. It’ll take a given text string and a width, incrementally… Continue reading Maximizing font size in FPDF