Commit 39f158a4 authored by Alex Butler's avatar Alex Butler
Browse files

Merge branch 'fix-compound-glyph-signed-positions' into 'master'

Use i8 positions in compound glyphs

Closes #18

See merge request !25
parents d0c5dd41 4b92e120
Pipeline #1253 passed with stages
in 8 minutes and 18 seconds
## 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