Nikolay Sivov : d2d1: Support different measuring modes in DrawText().