Verified Commit 4b92e120 authored by Alex Butler's avatar Alex Butler
Browse files

Use i8 positions in compound glyphs

parent d0c5dd41
## master
* Remove all unsafe usage.
* Fix glyph positioning bug for compound glyphs (#18)
## 0.2.3
* Add `is_collection(&[u8]) -> bool`.
......
......@@ -675,9 +675,9 @@ impl<Data: Deref<Target = [u8]>> FontInfo<Data> {
mtx[5] = BE::read_i16(comp) as f32;
comp = &comp[2..];
} else {
mtx[4] = comp[0] as f32;
mtx[4] = (comp[0] as i8) as f32;
comp = &comp[1..];
mtx[5] = comp[0] as f32;
mtx[5] = (comp[0] as i8) as f32;
comp = &comp[1..];
}
} else {
......
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