[dwrite] Don't allocate more than needed

Addressing Nikolay Sivov reviews on harfbuzz mailing list
1 file changed