The statistical mechanics of simple glass forming systems in two dimensions is worked out. The glass disorder is encoded via a Voronoi tesselation, and the statistical mechanics is performed directly in this encoding. The theory provides, without free parameters, an explanation of the glass transition phenomenology, including the identification of two different temperatures, T(g) and T(c) , the first associated with jamming and the second associated with crystallization at very low temperatures.