Slabtype Algorithm / 2007

by Erik Loyer

Originally developed for Public Secrets, the Slabtype algorithm takes arbitrary text and calculates how to split and size it such that it fits in an arbitrary rectangle in an aesthetically pleasing way. The algorithm was later adapted as a jQuery plugin, and then to Javascript/Canvas. A four-part blog series describes the algorithm in detail.

Go to project

Slabtype 0

Slabtype was originally designed for the interface of the interactive documentary Public Secrets.

Slabtype 1

The algorithm transforms arbitrary text input…

Slabtype 2

…into a rectangular “slab” of text designed to fit in a specified rectangle.