Closed schell closed 3 years ago
It looks like this font's format is not fully supported by ttf-parser. I've raised an issue upstream: https://github.com/RazrFalcon/ttf-parser/issues/48.
I downloaded the font and noticed they also ship _"separatestatics" non-variable font versions. These seem to work fine so could serve as a workaround for you.
You can try any font with the image
example. For example: cargo run --example image ~/Downloads/ArrowType-Recursive-1.070/fonts/ArrowType-Recursive-1.070/Recursive_Desktop/separate_statics/OTF/RecursiveSansLnrSt-Regular.otf
This has been addressed upstream & fixed with #27.
I'll publish a new release at the end of the coming week.
Thank you for the quick reply and investigation 🎉 . Top notch!
I've published 0.2.8
with this fix
Hi! First of all, thank you, thank you for these great crates!
I'm trying to use the font Recursive for my game and I've found that it
displays the incorrectis missing glyphs.Here is a screeny of the version using
Recursive_VF_1.070.ttf
:And here is the same example using
OpenSans-Light.ttf
:Here's my initial layout:
The system that builds and buffers the geometry is mostly copied from your OpenGL example in
glyph_brush/examples/opengl.rs
.Furthermore, it doesn't seem to depend on what font index I decode the font with (Recursive is a big family).