PistonDevelopers / gfx_text

Draw text for gfx using freetype
http://docs.piston.rs/gfx_text/gfx_text/
MIT License
22 stars 12 forks source link

Flexible output format support #47

Closed kvark closed 8 years ago

kvark commented 8 years ago

Closes #45

Kagami commented 8 years ago

Thanks, @kvark!

joelwkall commented 8 years ago

Awesome! Any idea when this will hit crates.io?

Kagami commented 8 years ago

@joelwkall just published 0.11.0, try it out.

joelwkall commented 8 years ago

I'm probably just to green at rust, but I can't make the new function accept the Factory from my PistonWindow.

let mut text = gfx_text::new(window.factory.clone()).build().unwrap();

Just gives me

the trait gfx_core::factory::Factory<_> is not implemented for the type gfx_device_gl::factory::Factory

Any help appreciated.

kvark commented 8 years ago

Sounds like your app is linking against a different version of GFX than gfx_text is using.

On Jul 1, 2016, at 13:45, Joel W Kall notifications@github.com wrote:

I'm probably just to green at rust, but I can't make the new function accept the Factory from my PistonWindow.

let mut text = gfx_text::new(window.factory.clone()).build().unwrap();

Just gives me

the trait gfxcore::factory::Factory<> is not implemented for the type gfx_device_gl::factory::Factory

Any help appreciated.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

joelwkall commented 8 years ago

Hmm, yes, piston_window seems to be using gfx 0.11, while gfx_text uses gfx 0.12. How can I fix that?

kvark commented 8 years ago

Submit a PR to piston_window. There are next to no changes to GFX API in the new version, so updating should be easy.

On Jul 1, 2016, at 14:04, Joel W Kall notifications@github.com wrote:

Hmm, yes, piston_window seems to be using gfx 0.11, while gfx_text uses gfx 0.12. How can I fix that?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

kvark commented 8 years ago

Alternatively, as a workaround, you can checkout fresh GFX and do a cargo override on it.

On Jul 1, 2016, at 14:04, Joel W Kall notifications@github.com wrote:

Hmm, yes, piston_window seems to be using gfx 0.11, while gfx_text uses gfx 0.12. How can I fix that?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.