a73194f6b4
Remove the check that the size representation was the same as float and as double, which was supposed to catch various edge cases (NaNs, huge numbers etc) but actually caught plenty of perfectly valid font sizes such as 13.8 that simply lost precision when converting from double to float. Just check that the size is positive and less than FLT_MAX to avoid using values that really don't make sense as font sizes. Also add a unit test checking that using fractional font sizes in description string works as expected. Closes #18590. Closes https://github.com/wxWidgets/wxWidgets/pull/1707 |
||
---|---|---|
.. | ||
fonttest.cpp |