Rust-SDL2 / rust-sdl2

SDL2 bindings for Rust
MIT License
2.65k stars 465 forks source link

use TTF_GlyphIsProvided32 and TTF_GlyphMetrics32 instead of the 16 bit ones #1414

Open antonilol opened 3 days ago

antonilol commented 3 days ago

fixes #1383

This is not a breaking change, the u16 returned from find_glyph is the index, which is wide enough (although Rust conventions want indices to be usizes, changing the return type to usize would make it a breaking change).

I did have to update the bindings as they did not contain the '32 bit' functions