PistonDevelopers / graphics

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

Make `Text` draw with position #1137

Closed bvssvni closed 1 year ago

bvssvni commented 4 years ago

See https://github.com/PistonDevelopers/piston/issues/1332

The API for text is a bit odd. It would be nice if you can specify a position.

Alternative for non-breaking change: Add Text::draw_at.

bvssvni commented 1 year ago

I think Text::draw_pos is more consistent with Transformed::trans_pos.