Johan Kasperi
Johan Kasperi
Doing something like this also seems to solve it in your repro and it produces the correct lineheight ``` paragraphStyle.minimumLineHeight = lineHeight - 0.01; paragraphStyle.maximumLineHeight = lineHeight + 0.01; ```...
This code also fixes it ``` paragraphStyle.lineHeightMultiple = round((lineHeight / font.lineHeight) * 10000.0) / 10000.0; ``` But this also feels unsafe. It doesn't work when I'm not rounding it
Ended up doing this hack in my app. Probably just a workaround and not a real solution to the problem ``` paragraphStyle.maximumLineHeight = lineHeight * 1.01; paragraphStyle.minimumLineHeight = lineHeight *...
> Or actually I think this code makes more sense where the epsilon is added before the pixel snapping operation, since otherwise the pixel snapping is kinda pointless if the...