microsoft / DirectXTK12

The DirectX Tool Kit (aka DirectXTK12) is a collection of helper classes for writing DirectX 12 code in C++
https://walbourn.github.io/directx-tool-kit-for-directx-12/
MIT License
1.48k stars 393 forks source link

Modifications to the MeasureString and MeasureDrawBounds methods #67

Closed mike-copley-atg closed 4 years ago

mike-copley-atg commented 4 years ago

Modifications to the MeasureString and MeasureDrawBounds methods to allow for factoring in whitespace, and ensuring that the measurement changes make sense, such as giving whitespace a height equal to the font's line spacing.

This is related to the new ignoreWhiteSpace defaulted parameter and not manifest when 'true' is used.

walbourn commented 4 years ago

Same fixes are now in the DX11 version