[Bug 272521] Handle fonts with many styles gracefully