Add feature to render complex text layouts.

The overhead this causes for normal text layouts is one vtable call.