Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upTextField font rendering issues #3456
Comments
|
Probably text rendering is drawn at a fractional position. Need SSCCE. On Sat, Oct 3, 2015 at 9:15 PM, Edu Garcia notifications@github.com wrote:
|
|
I just had this issue. If you're using FreeTypeFontGenerator you may want to generate your font with an even font size. The issue may also be fixed by setting the TextureFilter to Linear instead of the default Filter Nearest when a font is generated by the FreeTypeFontGenerator. |
|
25 days, no SSCCE. |
This is a screenshot of a button (top) and a textfield (bottom). As you can see, the text on the textfield looks as if some characters are moved a bit up (you can see the capital 'T' is cut at the top, for example)
I've done some testing, and overriding
setStylefor theTextFieldand making thetextHeight1 pixel bigger fixes the issue. However, I've checked the text height for the button (it's aLabel) and it's exactly the same as the one on theTextField(before doing my fix) so probably there is an underlying issue that needs fixing. Also, changing the height of theTextFielditself doesn't fix the issue.Does anyone have an idea of what might be happening? I'm happy to try fixing the issue myself if somebody can point at some probable cause (the code is a bit big) but if nobody can, I'll post an SSCCE