Normal
After some reading of font theory, I just reworked the branch again. In fact, the original code was correct, it only subtracted a fixed pixel from all text heights which produced the problem of the cut y's and g's.I removed this fixed value and added a fixed pixel to ensure there's enough place around the text to be completely rendered. I also changed some method names which were not correct and I improved some comments.Please check the Fix_FontHeightCalculation branch again!
After some reading of font theory, I just reworked the branch again. In fact, the original code was correct, it only subtracted a fixed pixel from all text heights which produced the problem of the cut y's and g's.
I removed this fixed value and added a fixed pixel to ensure there's enough place around the text to be completely rendered. I also changed some method names which were not correct and I improved some comments.
Please check the Fix_FontHeightCalculation branch again!