-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enhancement: in new text rendering library, prevent shrinking of text #53
Comments
I'm an idiot, I hadn't set the editbox to be tall enough in my code |
Font Chef (the new library) handles things differently, it does not output a texture with rendered text, it outputs a series of clipping and target rects to render from a glyph atlas so in theory this would not happen, but I will make sure. |
Maybe if you have an even larger editbox, it does not happen? |
Yiep. Thing is, when we get the text back from SDL, baseline information is lost. A good workaround would be instead of vertically centering things using the height of the returned surface, use |
An urgent fix isn't really required, it was just something that ought to be took into consideration for fontchef |
in the new text rendering, can you ensure the height of the text does not do this
by making sure the empty texture goes as far down as the standard (or max?) descent of a glyph even if there are no characters with any descents (the full line height?)
(diagram added for clarity)
The text was updated successfully, but these errors were encountered: