PistonDevelopers / graphics

A library for 2D graphics, written in Rust, that works with multiple back-ends
MIT License
479 stars 55 forks source link

text wrapping and alignement? #1081

Open jaroslaw-weber opened 7 years ago

jaroslaw-weber commented 7 years ago

Is It possible to setup alignment and wrapping for Text?

mitchmindtree commented 7 years ago

@jaroslaw-weber I don't believe there are any tools for text alignment or wrapping in the graphics crate itself, however conrod does provide this (and provides a backend for drawing to a piston Graphics instance if necessary - see the all_piston_window example). Running the text example should give you an idea of how it works.