PistonDevelopers / glium_graphics

A Glium 2D back-end for the Piston game engine
MIT License
17 stars 14 forks source link

Switch from freetype-rs to rusttype #110

Open Boscop opened 8 years ago

Boscop commented 8 years ago

Like this but for glium_graphics: https://github.com/PistonDevelopers/gfx_graphics/issues/276

I want to do this (seems like the changes can be pretty much mirrored), but thought I'd better post here in case anyone is already working on this or already did it..

Relevant files: glium_graphics glyph gfx_graphics glyph changes

bvssvni commented 8 years ago

This library needs upgrade to latest piston-graphics. Opened https://github.com/PistonDevelopers/glium_graphics/issues/111. Might need to do this first as there were some changes to the CharacterCache trait.

bvssvni commented 8 years ago

This is ready to be done now.

gaborigloi commented 8 years ago

@Boscop This might also be helpful: https://github.com/dylanede/rusttype/blob/master/examples/gpu_cache.rs#L108 - the GPU glyph cache example of rusttype uses glium already :). (It seems that gfx_graphics is using its own glyph cache, not the one provided by rusttype.)