The optimal layout can be selected based not only on the degree of space compression or expansion necessary to effectuate justification, but also on the number and mutual proximity of the hyphens, occurrence of widows and orphans and other format parameters and metrics.