Introducing Responsive Web Typography With FlowType.JS | Smashing Coding
FlowType.JS is a jQuery plugin that automatically scales font size and line height in proportion to the width of its containing element, solving the problem that text becomes harder to read at certain viewport widths even when images scale perfectly. The developers explain the mathematical logic behind the tool—dividing element width by a ratio to determine optimal font size, then multiplying that by a line-height ratio—and walk through their iterative development process, including refinements suggested by peers that condensed the code to just 450 bytes. The plugin includes configurable minimum and maximum thresholds to prevent text from becoming illegibly small or large at different breakpoints.