TSA: Layout: Use custom callback functions to render substrings.
TSA: Layout: Use custom callback functions to render substrings.

... or none at all. For now, this is mainly to get rid of the unnecessary TextOut() calls when calling GetTextExtent() - which are invisible, but may still impact performance.
In a th14 scenario, this causes roughly 30% less time to be spent on text rendering. During a full run, this amounts to 39ms on my system.

VBChunguk/thcrap,thpatch/thcrap,thpatch/thcrap,VBChunguk/thcrap,VBChunguk/thcrap,thpatch/thcrap,thpatch/thcrap,thpatch/thcrap