Open indefini opened 4 years ago
after looking into it a little bit, this is because there is a division by zero in raster_bounds() units_per_em is 0 for a bitmap font. (as described here https://www.freetype.org/freetype2/docs/reference/ft2-base_interface.html , this variable is not relevant for bitmap fonts) so I think for now font-kit does not support bitmap fonts. would it be easy?hard? to implement?
I tried the render-glyph example with some artwiz fonts with the following code:
it gave me this error:
thread 'main' panicked at 'attempt to negate with overflow', src/loaders/freetype.rs:805:20
I tried to doy: -(vector.y() as i64)
but then I got