Commit d8df6bff authored by Alex Butler's avatar Alex Butler

Merge branch 'fix-consola-feff' into 'master'

Fix get_glyph_shape panic consola \u{feff}

Closes #19

See merge request redox-os/stb_truetype-rs!28
parents 191b3ef4 b641fe6b
Pipeline #2237 passed with stages
in 1 minute and 53 seconds
......@@ -909,9 +909,9 @@ impl<Data: Deref<Target = [u8]>> FontInfo<Data> {
scx = x;
scy = y;
let (next_flags, next_x, next_y) = {
let peek = &iter.peek().unwrap().1;
(peek.flags, peek.x, peek.y)
let (next_flags, next_x, next_y) = match iter.peek() {
Some((_, fd)) => (fd.flags, fd.x, fd.y),
None => break,
};
if next_flags & 1 == 0 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment