gfx_text
gfx_text copied to clipboard
Draw text for gfx using freetype
See https://github.com/dylanede/rusttype > A pure Rust alternative to libraries like FreeType.
It'd be convenient for `error_chain` purposes. I could probably write a PR if you like!
# Motivation Currently the library can't work with [complex text layout](https://en.wikipedia.org/wiki/Complex_text_layout) (ex: Arabic, Hindi, Tibetan). Hence, it is necessary to create a text shaping engine to tell how to choose...
I can't make basic usage example in the Readme.md compile. The example says: ``` // Initialize text renderer. let mut text = gfx_text::new(factory).build().unwrap(); // In render loop: // Add some...
When running the hello_world example in [turbine](https://github.com/pistondevelopers/turbine) the text is drawn at larger offset from axes when turning up the near clip distance. It seems that this should be compensated...
Fit text into the given width, wrap by spaces and also correctly recognize line breaks. Was requested by @LaylConway on #rust.
`gfx-rs` itself doesn't use any allocations on a call-by-call basis, and it would be great if `gfx_text` didn't impose this overhead either. The allocations come from the constructed meshes and...
On retina screens, the frame buffer is twice the size of the internal window size in each direction. When one renders text, one might want to compensate for this. In...