-
Notifications
You must be signed in to change notification settings - Fork 25
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
Text clipping #277
Comments
Good question. Yes, if you have direct access to the Or, yes, using As for row/column labels, I'd like to get support for those built into |
You're right, text should be cropped/clipped instead of overlap. I think that won't be hard to fix. Currently I use scissor-rects to clip the inside of a scroll region, but text drawing is essentially just copying a sprite so modifying the coordinates should be enough. Use
You can try modifying https://github.com/kas-gui/kas-text/blob/master/src/fonts/families.rs to fix it — this file is basically a quick hack (see kas-gui/kas-text#53). I think it may be a while since a proper solution for font discovery is available in the Rust ecosystem, so tweaking this file to work well on more systems would be useful. You can also modify font selection through config files (see |
Thank you, i'll try that.
I have all of them, but still get italics |
Reopening because text-clipping isn't done yet. |
I'll postpone implementation of text-clipping for now to reduce API changes. Plan:
|
Is it possible for Text to cut instead of word-wrapping? I'm trying to build Labels-holding Separator for header of listview, but when i collapse headers text always overlaps.
I must say i modified Separator, so its handles could collapse to some smaller size. And changed Label's TextClass to Button, so it wont word-wrap.
The text was updated successfully, but these errors were encountered: