JUCE 8 BR: Usage of `withPointHeight` produces incorrect `getStringWidth` values

Hey @reuk,

I blindly thought this commit would fix my getStringWidth issue, but I’m still seeing it.

getStringWidthFloat() uses font->getHeight() to calculate width. When using withPointHeight to handle heights, this returns options.height (-1) instead of (I assume based on the other commit) calling getHeight() which calculates the actual height.

Reproduction/Testing: add positive tracking to a font and watch getStringWidth shrink instead of grow.

Thanks for your patience, a fix is finally out on the juce8 branch:

1 Like