u/4dplus

▲ 3 r/rust

Cosmic-text or others for 3d rectangle constrained text? RTL?

cosmic-text is one of few Rust crates that does right to left text and mostly cutting to a rectangle, but how do you get it to do top cutting and another whole GUI or text from top to bottom? Also how do you get if the text is going out of frame on a line, all you get is shaped text that limits to being inside the rectangle screen, so? I have tried meshtext, no right to left but good for this, what things with right to left and rectangle constrained parts and good measurement stuff other than the mentioned crates are there in Rust?

Willing to give out the full code upon request, I need the rectangle because VR and that 1.5 meters away thing, I could make it infinite, but a huge screen that covers all might not be so good and rendering to a texture is slower slightly and does not have as much 3d extrusion potential, did I say I am tessellating and using shaders on the text? Yeah, I want that possible too, lyon-tessellation is awesome for a path to triangles, anyway, what are some good options for this? Making an open source at some point GUI with controls from all types of things including smart TV, gamepads, and VR, anything you want in it? What should I name the GUI lib?

reddit.com
u/4dplus — 1 day ago